Skip to content

Commit

Permalink
make compiler happy
Browse files Browse the repository at this point in the history
For building LineageOS 21, the compiler is stricter than before.

Change-Id: Ibf5a3771b99fdbca43d12a556859bbe7635e1d68
  • Loading branch information
kxxt committed Jan 20, 2024
1 parent a9f7e25 commit c0612b2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/goodix_9916/goodix_ts_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int goodix_reset_mode(int mode);
struct drm_panel *active_panel;
extern struct device_node *gf_spi_dp;

static int goodix_ts_check_panel()
static int goodix_ts_check_panel(void)
{
int i;
int count;
Expand Down
8 changes: 3 additions & 5 deletions drivers/input/touchscreen/xiaomi/xiaomi_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ struct xiaomi_touch *xiaomi_touch_dev_get(int minor)
return NULL;
}

struct class *get_xiaomi_touch_class()
struct class *get_xiaomi_touch_class(void)
{
return xiaomi_touch_dev.class;
}
EXPORT_SYMBOL_GPL(get_xiaomi_touch_class);

struct device *get_xiaomi_touch_dev()
struct device *get_xiaomi_touch_dev(void)
{
return xiaomi_touch_dev.dev;
}
Expand Down Expand Up @@ -727,16 +727,14 @@ int copy_touch_rawdata(char *raw_base, int len)
}
EXPORT_SYMBOL_GPL(copy_touch_rawdata);

int update_touch_rawdata()
int update_touch_rawdata(void)
{
sysfs_notify(&xiaomi_touch_dev.dev->kobj, NULL, "update_rawdata");

return 0;
}
EXPORT_SYMBOL_GPL(update_touch_rawdata);

// SAVE

static ssize_t enable_touchraw_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/wl2866d.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void clear_use_count(int val)
}
}

int wl2866d_camera_power_down_all()
int wl2866d_camera_power_down_all(void)
{
int ret = -1;
ret = wl2866d_i2c_write(camera_chip, wl2866d_on_config[VOL_ENABLE].reg, 0);//bit1
Expand Down
4 changes: 2 additions & 2 deletions drivers/power/supply/qti_battery_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ static void qti_battery_register_panel_notifier_work(struct work_struct *work)
struct device_node *node;
struct battery_chg_dev *pvt_data = container_of(work, struct battery_chg_dev, panel_notify_register_work.work);
int error = 0;
static retry_count = 3;
static int retry_count = 3;

node = of_find_node_by_name(NULL, "charge-screen");
if (!node) {
Expand Down Expand Up @@ -2423,7 +2423,7 @@ static void qti_battery_register_panel_sec_notifier_work(struct work_struct *wor
struct device_node *node;
struct battery_chg_dev *pvt_data = container_of(work, struct battery_chg_dev, panel_sec_notify_register_work.work);
int error = 0;
static retry_count = 3;
static int retry_count = 3;

node = of_find_node_by_name(NULL, "charge-screen");
if (!node) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/qcom/minidump_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static bool minidump_ftrace_dump = true;

static bool md_in_oops_handler;
static struct seq_buf *md_runq_seq_buf;
static md_align_offset;
static int md_align_offset;

/* CPU context information */
#ifdef CONFIG_QCOM_MINIDUMP_PANIC_CPU_CONTEXT
Expand Down
6 changes: 3 additions & 3 deletions drivers/thermal/mi_thermal_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int cpu_thermal_init(void)
return ret;
}

static void destory_thermal_cpu(){
static void destory_thermal_cpu(void){
struct cpufreq_device *priv, *tmp;
list_for_each_entry_safe(priv, tmp, &cpufreq_dev_list, node) {
freq_qos_remove_request(priv->qos_req);
Expand Down Expand Up @@ -913,7 +913,7 @@ static int thermal_check_panel(struct device_node *np)
return 0;
}

static void create_thermal_message_node()
static void create_thermal_message_node(void)
{
int ret = 0;
struct kernfs_node *sysfs_sd = NULL;
Expand Down Expand Up @@ -977,7 +977,7 @@ static void screen_state_check(struct work_struct *work)
struct device_node *node;
void *pvt_data = NULL;
int error = 0;
static retry_count = 10;
static int retry_count = 10;

node = of_find_node_by_name(NULL, "thermal-screen");
if (!node) {
Expand Down

0 comments on commit c0612b2

Please sign in to comment.