diff --git a/arch/arm64/kernel/rootguard/oplus_guard_general.c b/arch/arm64/kernel/rootguard/oplus_guard_general.c index 22e4999f356c..191b3af7467c 100644 --- a/arch/arm64/kernel/rootguard/oplus_guard_general.c +++ b/arch/arm64/kernel/rootguard/oplus_guard_general.c @@ -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 ; } diff --git a/drivers/gpu/drm/msm/oplus/oppo_dc_diming.c b/drivers/gpu/drm/msm/oplus/oppo_dc_diming.c index ecf671aa335c..1af0c2c06517 100644 --- a/drivers/gpu/drm/msm/oplus/oppo_dc_diming.c +++ b/drivers/gpu/drm/msm/oplus/oppo_dc_diming.c @@ -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 */ diff --git a/drivers/gpu/drm/msm/oplus/oppo_display_panel.c b/drivers/gpu/drm/msm/oplus/oppo_display_panel.c index ad6f5e805e1b..ae2fe00085aa 100644 --- a/drivers/gpu/drm/msm/oplus/oppo_display_panel.c +++ b/drivers/gpu/drm/msm/oplus/oppo_display_panel.c @@ -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; diff --git a/drivers/nfc/oppo_nfc/oppo_nfc.c b/drivers/nfc/oppo_nfc/oppo_nfc.c index ec59ad3e1e57..52f59f57f69c 100644 --- a/drivers/nfc/oppo_nfc/oppo_nfc.c +++ b/drivers/nfc/oppo_nfc/oppo_nfc.c @@ -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; } diff --git a/drivers/power/oppo/charger_ic/oplus_battery_msm7125_R.c b/drivers/power/oppo/charger_ic/oplus_battery_msm7125_R.c index f6d0b6060644..a1a9e7669af8 100644 --- a/drivers/power/oppo/charger_ic/oplus_battery_msm7125_R.c +++ b/drivers/power/oppo/charger_ic/oplus_battery_msm7125_R.c @@ -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; diff --git a/drivers/power/oppo/gauge_ic/oplus_optiga/Platform/board.c b/drivers/power/oppo/gauge_ic/oplus_optiga/Platform/board.c index 9f6e1039c9cc..ce06f69577a7 100644 --- a/drivers/power/oppo/gauge_ic/oplus_optiga/Platform/board.c +++ b/drivers/power/oppo/gauge_ic/oplus_optiga/Platform/board.c @@ -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(); } diff --git a/drivers/power/oppo/gauge_ic/oplus_optiga/SWI/Optiga_Swi.c b/drivers/power/oppo/gauge_ic/oplus_optiga/SWI/Optiga_Swi.c index 3e676dab3bc7..46177780cbc6 100644 --- a/drivers/power/oppo/gauge_ic/oplus_optiga/SWI/Optiga_Swi.c +++ b/drivers/power/oppo/gauge_ic/oplus_optiga/SWI/Optiga_Swi.c @@ -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; } diff --git a/drivers/power/oppo/gauge_ic/oplus_optiga/oplus_optiga.c b/drivers/power/oppo/gauge_ic/oplus_optiga/oplus_optiga.c index 09b19fa1b59e..4ead18e97786 100644 --- a/drivers/power/oppo/gauge_ic/oplus_optiga/oplus_optiga.c +++ b/drivers/power/oppo/gauge_ic/oplus_optiga/oplus_optiga.c @@ -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; diff --git a/drivers/power/oppo/oplus_vooc.c b/drivers/power/oppo/oplus_vooc.c index f727f511e123..fce671acf19f 100644 --- a/drivers/power/oppo/oplus_vooc.c +++ b/drivers/power/oppo/oplus_vooc.c @@ -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; diff --git a/drivers/regulator/qcom_pm8008-regulator.c b/drivers/regulator/qcom_pm8008-regulator.c index 4b15cdc4c17d..0c6d9029e61c 100644 --- a/drivers/regulator/qcom_pm8008-regulator.c +++ b/drivers/regulator/qcom_pm8008-regulator.c @@ -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; diff --git a/drivers/soc/oplus/oplus_nandswap/nandswap.h b/drivers/soc/oplus/oplus_nandswap/nandswap.h index 5671411b7592..2c391df79806 100644 --- a/drivers/soc/oplus/oplus_nandswap/nandswap.h +++ b/drivers/soc/oplus/oplus_nandswap/nandswap.h @@ -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; } diff --git a/drivers/soc/oplus/sensor/oplus_sensor_devinfo.c b/drivers/soc/oplus/sensor/oplus_sensor_devinfo.c index 8ec648422453..40df9ce0ca61 100644 --- a/drivers/soc/oplus/sensor/oplus_sensor_devinfo.c +++ b/drivers/soc/oplus/sensor/oplus_sensor_devinfo.c @@ -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; diff --git a/drivers/soc/oplus/system/dump_device_info/dump_device_info.c b/drivers/soc/oplus/system/dump_device_info/dump_device_info.c index 9b77f6b000de..5d08647a64fc 100644 --- a/drivers/soc/oplus/system/dump_device_info/dump_device_info.c +++ b/drivers/soc/oplus/system/dump_device_info/dump_device_info.c @@ -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()); diff --git a/drivers/soc/oplus/system/oplus_project/qcom/oplus_project.c b/drivers/soc/oplus/system/oplus_project/qcom/oplus_project.c index 946ec5dc521c..255ef1de151f 100644 --- a/drivers/soc/oplus/system/oplus_project/qcom/oplus_project.c +++ b/drivers/soc/oplus/system/oplus_project/qcom/oplus_project.c @@ -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(); diff --git a/drivers/soc/oplus/system/uboot_log/uboot_log.c b/drivers/soc/oplus/system/uboot_log/uboot_log.c index e7fdd6d1e144..537922c52be2 100644 --- a/drivers/soc/oplus/system/uboot_log/uboot_log.c +++ b/drivers/soc/oplus/system/uboot_log/uboot_log.c @@ -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; diff --git a/drivers/soc/qcom/oppo_watchdog_util.c b/drivers/soc/qcom/oppo_watchdog_util.c index 35a460f02cde..9febf8d05786 100644 --- a/drivers/soc/qcom/oppo_watchdog_util.c +++ b/drivers/soc/qcom/oppo_watchdog_util.c @@ -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; } diff --git a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c index 0997fccce51a..366069e97a25 100644 --- a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c +++ b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c @@ -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; } diff --git a/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c b/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c index a622ca425d36..a565aab1d547 100644 --- a/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c +++ b/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c @@ -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; } diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 0fe851a1a140..2a8b03b082cc 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -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, diff --git a/net/oplus_nwpower/oplus_nwpower.c b/net/oplus_nwpower/oplus_nwpower.c index dbc64c13301d..d943c2fa94fc 100644 --- a/net/oplus_nwpower/oplus_nwpower.c +++ b/net/oplus_nwpower/oplus_nwpower.c @@ -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; diff --git a/net/oplus_sla/oplus_sla.c b/net/oplus_sla/oplus_sla.c index fca40ccd216a..8a6e9d6ed8ba 100644 --- a/net/oplus_sla/oplus_sla.c +++ b/net/oplus_sla/oplus_sla.c @@ -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; diff --git a/techpack/audio/4.0/asoc/codecs/sia81xx/sia81xx_socket.c b/techpack/audio/4.0/asoc/codecs/sia81xx/sia81xx_socket.c index 102cdc9ea9d7..ebaf3f136e15 100644 --- a/techpack/audio/4.0/asoc/codecs/sia81xx/sia81xx_socket.c +++ b/techpack/audio/4.0/asoc/codecs/sia81xx/sia81xx_socket.c @@ -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; diff --git a/techpack/audio/4.0/asoc/kona.c b/techpack/audio/4.0/asoc/kona.c index b795e7069390..5cd9b3ed25d0 100644 --- a/techpack/audio/4.0/asoc/kona.c +++ b/techpack/audio/4.0/asoc/kona.c @@ -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;