Skip to content

Commit c7ddceb

Browse files
committed
treewide: oplus: Address clang-17 build warnings
Change-Id: Ieb6364a71148d1e51d62ade04c926dcbe7cf712e
1 parent 8f2c35d commit c7ddceb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+85
-85
lines changed

drivers/block/zram/hybridswap/hybridswap_eswap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ ssize_t hybridswap_report_show(struct device *dev,
541541
return hybridswap_fail_record_show(buf);
542542
}
543543

544-
static inline meminfo_show(struct hybstatus *stat, char *buf, ssize_t len)
544+
static inline ssize_t meminfo_show(struct hybstatus *stat, char *buf, ssize_t len)
545545
{
546546
unsigned long eswap_total_pages = 0, eswap_compressed_pages = 0;
547547
unsigned long eswap_used_pages = 0;

drivers/input/oplus_fp_drivers/goodix_optical_fp/gf_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,14 @@ static void irq_cleanup(struct gf_dev *gf_dev)
345345
free_irq(gf_dev->irq, gf_dev);//need modify
346346
}
347347

348-
static void gf_auto_send_touchdown()
348+
static void gf_auto_send_touchdown(void)
349349
{
350350
struct fp_underscreen_info tp_info;
351351
tp_info.touch_state = 1;
352352
gf_opticalfp_irq_handler(&tp_info);
353353
}
354354

355-
static void gf_auto_send_touchup()
355+
static void gf_auto_send_touchup(void)
356356
{
357357
struct fp_underscreen_info tp_info;
358358
tp_info.touch_state = 0;

drivers/input/oplus_fp_drivers/goodix_optical_fp/gf_spi_tee.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,14 +491,14 @@ static void gf_kernel_key_input(struct gf_dev *gf_dev, struct gf_key *gf_key)
491491
}
492492
}
493493

494-
static void gf_auto_send_touchdown()
494+
static void gf_auto_send_touchdown(void)
495495
{
496496
struct fp_underscreen_info tp_info;
497497
tp_info.touch_state = 1;
498498
gf_opticalfp_irq_handler(&tp_info);
499499
}
500500

501-
static void gf_auto_send_touchup()
501+
static void gf_auto_send_touchup(void)
502502
{
503503
struct fp_underscreen_info tp_info;
504504
tp_info.touch_state = 0;

drivers/irqchip/irq-gic-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static DEFINE_STATIC_KEY_TRUE(supports_deactivate_key);
7878

7979
static struct gic_kvm_info gic_v3_kvm_info;
8080
static DEFINE_PER_CPU(bool, has_rss);
81-
extern is_first_ipcc_msg;
81+
extern int is_first_ipcc_msg;
8282

8383
#define MPIDR_RS(mpidr) (((mpidr) & 0xF0UL) >> 4)
8484
#define gic_data_rdist() (this_cpu_ptr(gic_data.rdists.rdist))

drivers/power/oplus/charger_ic/oplus_battery_msm7125_Q.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14353,7 +14353,7 @@ int oplus_chg_get_charger_subtype(void)
1435314353
}
1435414354

1435514355
extern int oplus_pdo_select(int vbus_mv, int ibus_ma);
14356-
int oplus_chg_set_pd_config()
14356+
int oplus_chg_set_pd_config(void)
1435714357
{
1435814358
int ret = -1;
1435914359
struct oplus_chg_chip *chip = g_oplus_chip;
@@ -14479,7 +14479,7 @@ int oplus_chg_enable_qc_detect(void)
1447914479
return ret;
1448014480
}
1448114481

14482-
int oplus_chg_set_qc_config()
14482+
int oplus_chg_set_qc_config(void)
1448314483
{
1448414484
int ret = -1;
1448514485
struct smb_charger *chg = NULL;
@@ -14605,7 +14605,7 @@ static const struct dev_pm_ops smb5_pm_ops = {
1460514605
.resume = smb5_pm_resume,
1460614606
.suspend = smb5_pm_suspend,
1460714607
};
14608-
void oplus_set_typec_sinkonly()
14608+
void oplus_set_typec_sinkonly(void)
1460914609
{
1461014610
oplus_set_otg_switch_status(false);
1461114611
};

drivers/power/oplus/charger_ic/oplus_battery_msm7250_R.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9173,7 +9173,7 @@ bool oplus_chg_check_qchv_condition(void)
91739173
return false;
91749174
}
91759175

9176-
int oplus_chg_set_qc_config()
9176+
int oplus_chg_set_qc_config(void)
91779177
{
91789178
int ret = -1;
91799179
struct smb_charger *chg = NULL;
@@ -10478,7 +10478,7 @@ void oplus_get_usbtemp_volt(struct oplus_chg_chip *chip)
1047810478
return ;
1047910479
}
1048010480

10481-
void oplus_set_typec_sinkonly()
10481+
void oplus_set_typec_sinkonly(void)
1048210482
{
1048310483
int rc;
1048410484
struct smb_charger *chg = NULL;

drivers/power/oplus/charger_ic/oplus_battery_msm8150Q.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14455,7 +14455,7 @@ int oplus_chg_get_charger_subtype(void)
1445514455
}
1445614456

1445714457
extern int oplus_pdo_select(int vbus_mv, int ibus_ma);
14458-
int oplus_chg_set_pd_config()
14458+
int oplus_chg_set_pd_config(void)
1445914459
{
1446014460
int ret = 0;
1446114461
struct oplus_chg_chip *chip = g_oplus_chip;
@@ -14522,7 +14522,7 @@ int oplus_chg_enable_qc_detect(void)
1452214522
return ret;
1452314523
}
1452414524

14525-
int oplus_chg_set_qc_config()
14525+
int oplus_chg_set_qc_config(void)
1452614526
{
1452714527
int ret = 0;
1452814528
struct smb_charger *chg = NULL;

drivers/power/oplus/charger_ic/oplus_battery_msm8150Q_pro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13626,7 +13626,7 @@ int oplus_chg_get_charger_subtype(void)
1362613626
}
1362713627

1362813628
extern int oplus_pdo_select(int vbus_mv, int ibus_ma);
13629-
int oplus_chg_set_pd_config()
13629+
int oplus_chg_set_pd_config(void)
1363013630
{
1363113631
int ret = 0;
1363213632
struct oplus_chg_chip *chip = g_oplus_chip;
@@ -13684,7 +13684,7 @@ int oplus_chg_enable_qc_detect(void)
1368413684
return ret;
1368513685
}
1368613686

13687-
int oplus_chg_set_qc_config()
13687+
int oplus_chg_set_qc_config(void)
1368813688
{
1368913689
int ret = 0;
1369013690
struct smb_charger *chg = NULL;

drivers/power/oplus/charger_ic/oplus_battery_msm8250.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11387,7 +11387,7 @@ bool oplus_chg_check_pd_svooc_adapater(void)
1138711387
}
1138811388
EXPORT_SYMBOL(oplus_chg_check_pd_svooc_adapater);
1138911389

11390-
void oplus_set_typec_sinkonly()
11390+
void oplus_set_typec_sinkonly(void)
1139111391
{
1139211392
int rc;
1139311393
struct smb_charger *chg = NULL;
@@ -16698,7 +16698,7 @@ void oplus_set_flash_screen_ctrl_by_pcb_version(struct oplus_chg_chip *chip)
1669816698
}
1669916699
#endif
1670016700
extern int oplus_pdo_select(int vbus_mv, int ibus_ma);
16701-
int oplus_chg_set_pd_config()
16701+
int oplus_chg_set_pd_config(void)
1670216702
{
1670316703
int ret = 0;
1670416704
struct oplus_chg_chip *chip = g_oplus_chip;
@@ -16779,7 +16779,7 @@ int oplus_chg_enable_qc_detect(void)
1677916779
return ret;
1678016780
}
1678116781

16782-
int oplus_chg_set_qc_config()
16782+
int oplus_chg_set_qc_config(void)
1678316783
{
1678416784
int ret = 0;
1678516785
struct smb_charger *chg = NULL;
@@ -17144,7 +17144,7 @@ static int smb5_probe(struct platform_device *pdev)
1714417144
struct power_supply *main_psy = NULL;
1714517145
struct power_supply *bms_psy = NULL;
1714617146
union power_supply_propval pval = {0, };
17147-
static reporting_not_ready_count = 0;
17147+
static int reporting_not_ready_count = 0;
1714817148
#endif
1714917149
struct smb5 *chip;
1715017150
struct smb_charger *chg;

drivers/power/oplus/charger_ic/oplus_battery_mtk6779R.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,7 @@ void mt_usb_disconnect(void)
29302930
#endif /* OPLUS_FEATURE_CHG_BASIC */
29312931
//====================================================================//
29322932

2933-
void oplus_set_typec_sinkonly()
2933+
void oplus_set_typec_sinkonly(void)
29342934
{
29352935
if (pinfo != NULL && pinfo->tcpc != NULL) {
29362936
printk(KERN_ERR "[OPLUS_CHG][%s]: usbtemp occur otg switch[0]\n", __func__);

0 commit comments

Comments
 (0)