treewide: fix prototype declaration error
Signed-off-by: debdeep199x <debdeep199x@gmail.com>
This commit is contained in:
@@ -83,7 +83,7 @@ static int __init boot_state_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit boot_state_exit()
|
||||
static void __exit boot_state_exit(void)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ extern atomic_t oppo_dimlayer_hbm_vblank_ref;
|
||||
extern int oppo_dc2_alpha;
|
||||
extern int oppo_seed_backlight;
|
||||
extern int oppo_panel_alpha;
|
||||
extern oppo_dc_v2_on;
|
||||
extern int oppo_dc_v2_on;
|
||||
extern ktime_t oppo_backlight_time;
|
||||
#ifdef OPLUS_FEATURE_AOD_RAMLESS
|
||||
/* Yuwei.Zhang@MULTIMEDIA.DISPLAY.LCD, 2020/09/25, sepolicy for aod ramless */
|
||||
|
||||
@@ -162,7 +162,7 @@ static const struct file_operations panel_ops =
|
||||
.write = panel_write,
|
||||
};
|
||||
|
||||
static int __init oppo_display_panel_init()
|
||||
static int __init oppo_display_panel_init(void)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
static char current_chipset[32];
|
||||
static bool support_nfc = false;
|
||||
|
||||
bool is_nfc_support()
|
||||
bool is_nfc_support(void)
|
||||
{
|
||||
return support_nfc;
|
||||
}
|
||||
|
||||
@@ -16914,7 +16914,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;
|
||||
@@ -17065,7 +17065,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;
|
||||
|
||||
@@ -28,7 +28,7 @@ void timing_init(void)
|
||||
g_culNvmTimeout = 10000; //5.1ms
|
||||
}
|
||||
|
||||
uint8_t get_pin()
|
||||
uint8_t get_pin(void)
|
||||
{
|
||||
return get_optiga_pin();
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ static BOOL b_push( uint8_t ub_Data )
|
||||
*
|
||||
* \return Size of ub_Stack
|
||||
********************************************************************/
|
||||
static uint8_t ub_SizeOfStack()
|
||||
static uint8_t ub_SizeOfStack(void)
|
||||
{
|
||||
return ub_StackPointer;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ void oem_gpio_control(unsigned gpio, int level)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(oem_gpio_control);
|
||||
|
||||
static try_count = 0;
|
||||
static int try_count = 0;
|
||||
void set_optiga_pin(uint8_t level){
|
||||
int en = level;
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ static bool oplus_vooc_is_battemp_exit(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
void oplus_vooc_battery_update()
|
||||
void oplus_vooc_battery_update(void)
|
||||
{
|
||||
struct oplus_vooc_chip *chip = g_vooc_chip;
|
||||
/*
|
||||
@@ -1842,7 +1842,7 @@ void oplus_vooc_set_fastchg_to_warm_false(void)
|
||||
}
|
||||
}
|
||||
|
||||
bool oplus_vooc_get_fastchg_low_temp_full()
|
||||
bool oplus_vooc_get_fastchg_low_temp_full(void)
|
||||
{
|
||||
if (!g_vooc_chip) {
|
||||
return false;
|
||||
|
||||
@@ -756,7 +756,7 @@ static int pm8008_register_ldo(struct pm8008_regulator *pm8008_reg,
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
/*zhixian.Mai @Cam.Drv, 2019/9/29, Add for PM8008 i2c error */
|
||||
void pm8008_do_reset()
|
||||
void pm8008_do_reset(void)
|
||||
{
|
||||
unsigned int val = 0;
|
||||
int rc = 0;
|
||||
|
||||
@@ -30,7 +30,7 @@ enum {
|
||||
};
|
||||
|
||||
extern struct task_struct *nswapoutd;
|
||||
static inline bool current_is_nswapoutd()
|
||||
static inline bool current_is_nswapoutd(void)
|
||||
{
|
||||
return current == nswapoutd;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ __attribute__((weak)) void oplus_device_dir_redirect(struct sensor_info * chip)
|
||||
pr_info("%s oplus_device_dir_redirect \n", __func__);
|
||||
};
|
||||
|
||||
__attribute__((weak)) unsigned int get_serialID()
|
||||
__attribute__((weak)) unsigned int get_serialID(void)
|
||||
{
|
||||
return 0;
|
||||
};
|
||||
@@ -1033,7 +1033,7 @@ static struct file_operations row_coe_fops = {
|
||||
.write = row_coe_write_proc,
|
||||
};
|
||||
|
||||
static int oplus_als_cali_data_init()
|
||||
static int oplus_als_cali_data_init(void)
|
||||
{
|
||||
int rc = 0;
|
||||
struct proc_dir_entry *pentry;
|
||||
|
||||
@@ -107,7 +107,7 @@ static void pstore_device_info_init(void )
|
||||
psinfo->bufsize = oldsize ;
|
||||
}
|
||||
|
||||
static void board_soc_info_init()
|
||||
static void board_soc_info_init(void)
|
||||
{
|
||||
|
||||
scnprintf(pcb_version, sizeof(pcb_version), "%x", get_PCB_Version());
|
||||
|
||||
@@ -341,7 +341,7 @@ uint32_t get_oppo_feature(enum F_INDEX index)
|
||||
EXPORT_SYMBOL(get_oppo_feature);
|
||||
|
||||
#define SERIALNO_LEN 16
|
||||
unsigned int get_serialID()
|
||||
unsigned int get_serialID(void)
|
||||
{
|
||||
unsigned int serial_id = 0xFFFFFFFF;
|
||||
|
||||
@@ -571,7 +571,7 @@ static int project_read_func(struct seq_file *s, void *v)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int get_cdt_version()
|
||||
unsigned int get_cdt_version(void)
|
||||
{
|
||||
init_project_version();
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ static u32 uboot_log_buf_len;
|
||||
/*
|
||||
* init uboot/kboot log buffer addr/size
|
||||
*/
|
||||
static int uboot_kboot_buffer_init()
|
||||
static int uboot_kboot_buffer_init(void)
|
||||
{
|
||||
struct reserved_mem *r_mem = NULL;
|
||||
struct device_node *reserved_memory, *kboot_uboot_logmemory;
|
||||
@@ -191,7 +191,7 @@ int ubootback_thread_fn(void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __init kernel_uboot_log_init()
|
||||
static int __init kernel_uboot_log_init(void)
|
||||
{
|
||||
struct proc_dir_entry *pEntry = NULL;
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ static void print_top10_irqs(void)
|
||||
irqno_sort[8], o_irq_counter.irqs_delta[irqno_sort[8]], irqno_sort[9], o_irq_counter.irqs_delta[irqno_sort[9]], o_irq_counter.all_irqs_delta);
|
||||
}
|
||||
|
||||
void dump_cpu_online_mask()
|
||||
void dump_cpu_online_mask(void)
|
||||
{
|
||||
static char alive_mask_buf[MASK_SIZE];
|
||||
struct cpumask avail_mask;
|
||||
@@ -164,7 +164,7 @@ void get_cpu_ping_mask(cpumask_t *pmask)
|
||||
*cpumask_bits(&avail_mask), *cpumask_bits(pmask), o_irq_counter.all_irqs_delta);
|
||||
}
|
||||
|
||||
void print_smp_call_cpu()
|
||||
void print_smp_call_cpu(void)
|
||||
{
|
||||
printk(KERN_INFO "cpu of last smp_call_function_any: %d\n",
|
||||
smp_call_any_cpu);
|
||||
@@ -228,7 +228,7 @@ int try_to_recover_pending(struct task_struct *w_task)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void reset_recovery_tried()
|
||||
void reset_recovery_tried(void)
|
||||
{
|
||||
recovery_tried = 0;
|
||||
}
|
||||
|
||||
@@ -1317,7 +1317,7 @@ struct ce_ops ce_service_legacy = {
|
||||
#endif
|
||||
};
|
||||
|
||||
struct ce_ops *ce_services_legacy()
|
||||
struct ce_ops *ce_services_legacy(void)
|
||||
{
|
||||
return &ce_service_legacy;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
static struct target_if_ctx *g_target_if_ctx;
|
||||
|
||||
struct target_if_ctx *target_if_get_ctx()
|
||||
struct target_if_ctx *target_if_get_ctx(void)
|
||||
{
|
||||
return g_target_if_ctx;
|
||||
}
|
||||
|
||||
@@ -1479,7 +1479,7 @@ task_may_not_preempt(struct task_struct *task, int cpu)
|
||||
}
|
||||
#if defined (CONFIG_SCHED_WALT) && defined (OPLUS_FEATURE_UIFIRST)
|
||||
extern bool is_sf(struct task_struct *p);
|
||||
extern sysctl_slide_boost_enabled;
|
||||
extern int sysctl_slide_boost_enabled;
|
||||
#endif
|
||||
static int
|
||||
select_task_rq_rt(struct task_struct *p, int cpu, int sd_flag, int flags,
|
||||
|
||||
@@ -616,7 +616,7 @@ static void oplus_print_ipa_wakeup(bool unsl)
|
||||
}
|
||||
}
|
||||
|
||||
static void oplus_reset_qrtr_wakeup()
|
||||
static void oplus_reset_qrtr_wakeup(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -636,7 +636,7 @@ static void oplus_reset_qrtr_wakeup()
|
||||
nw_pcie2_wakeup_times = 0;
|
||||
}
|
||||
|
||||
static void oplus_reset_ipa_wakeup()
|
||||
static void oplus_reset_ipa_wakeup(void)
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
|
||||
@@ -811,7 +811,7 @@ static int enable_oplus_sla_module(struct nlmsghdr *nlh)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int enable_oplus_limit_speed()
|
||||
static int enable_oplus_limit_speed(void)
|
||||
{
|
||||
sla_write_lock();
|
||||
rate_limit_info.rate_limit_enable = 1;
|
||||
@@ -820,7 +820,7 @@ static int enable_oplus_limit_speed()
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int disable_oplus_limit_speed()
|
||||
static int disable_oplus_limit_speed(void)
|
||||
{
|
||||
sla_write_lock();
|
||||
rate_limit_info.rate_limit_enable = 0;
|
||||
|
||||
@@ -546,7 +546,7 @@ end :
|
||||
return 0;
|
||||
}
|
||||
|
||||
int sia81xx_open_sock_server()
|
||||
int sia81xx_open_sock_server(void)
|
||||
{
|
||||
int ret = 0;
|
||||
struct sockaddr_in s_addr;
|
||||
|
||||
@@ -8336,7 +8336,7 @@ static const struct file_operations smartpa_id_proc_ops = {
|
||||
};
|
||||
|
||||
/* chengong@ODM_LQ@Multimedia.Audio,2019/10/29,add for smartpa evt1 */
|
||||
static void odm_mi2s_be_dai_rename()
|
||||
static void odm_mi2s_be_dai_rename(void)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user