Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 716e7458 authored by LuK1337's avatar LuK1337 Committed by KakatkarAkshay
Browse files

treewide: oplus: Address clang-17 build warnings

Change-Id: Ieb6364a71148d1e51d62ade04c926dcbe7cf712e
parent 044ca6fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ ssize_t hybridswap_report_show(struct device *dev,
	return hybridswap_fail_record_show(buf);
}

static inline meminfo_show(struct hybstatus *stat, char *buf, ssize_t len)
static inline ssize_t meminfo_show(struct hybstatus *stat, char *buf, ssize_t len)
{
	unsigned long eswap_total_pages = 0, eswap_compressed_pages = 0;
	unsigned long eswap_used_pages = 0;
+2 −2
Original line number Diff line number Diff line
@@ -345,14 +345,14 @@ static void irq_cleanup(struct gf_dev *gf_dev)
    free_irq(gf_dev->irq, gf_dev);//need modify
}

static void gf_auto_send_touchdown()
static void gf_auto_send_touchdown(void)
{
    struct fp_underscreen_info tp_info;
    tp_info.touch_state = 1;
    gf_opticalfp_irq_handler(&tp_info);
}

static void gf_auto_send_touchup()
static void gf_auto_send_touchup(void)
{
    struct fp_underscreen_info tp_info;
    tp_info.touch_state = 0;
+2 −2
Original line number Diff line number Diff line
@@ -491,14 +491,14 @@ static void gf_kernel_key_input(struct gf_dev *gf_dev, struct gf_key *gf_key)
	}
}

static void gf_auto_send_touchdown()
static void gf_auto_send_touchdown(void)
{
    struct fp_underscreen_info tp_info;
    tp_info.touch_state = 1;
    gf_opticalfp_irq_handler(&tp_info);
}

static void gf_auto_send_touchup()
static void gf_auto_send_touchup(void)
{
    struct fp_underscreen_info tp_info;
    tp_info.touch_state = 0;
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ static DEFINE_STATIC_KEY_TRUE(supports_deactivate_key);

static struct gic_kvm_info gic_v3_kvm_info;
static DEFINE_PER_CPU(bool, has_rss);
extern int is_first_ipcc_msg;

#define MPIDR_RS(mpidr)			(((mpidr) & 0xF0UL) >> 4)
#define gic_data_rdist()		(this_cpu_ptr(gic_data.rdists.rdist))
+4 −4
Original line number Diff line number Diff line
@@ -14353,7 +14353,7 @@ int oplus_chg_get_charger_subtype(void)
}

extern int oplus_pdo_select(int vbus_mv, int ibus_ma);
int oplus_chg_set_pd_config()
int oplus_chg_set_pd_config(void)
{
	int ret = -1;
	struct oplus_chg_chip *chip = g_oplus_chip;
@@ -14479,7 +14479,7 @@ int oplus_chg_enable_qc_detect(void)
	return ret;
}

int oplus_chg_set_qc_config()
int oplus_chg_set_qc_config(void)
{
	int ret = -1;
	struct smb_charger *chg = NULL;
@@ -14605,7 +14605,7 @@ static const struct dev_pm_ops smb5_pm_ops = {
	.resume		= smb5_pm_resume,
	.suspend		= smb5_pm_suspend,
};
void oplus_set_typec_sinkonly()
void oplus_set_typec_sinkonly(void)
{
	oplus_set_otg_switch_status(false);
};
Loading