From: Stricted Date: Thu, 22 Mar 2018 15:29:10 +0000 (+0100) Subject: fix section mismatch warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ca3027ec7d6b95d553280cd85f8f93f716597cd;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git fix section mismatch warnings --- diff --git a/arch/arm/mach-mt8127/mt_devs.c b/arch/arm/mach-mt8127/mt_devs.c index 76b0b8838021..672e22c5e6c2 100644 --- a/arch/arm/mach-mt8127/mt_devs.c +++ b/arch/arm/mach-mt8127/mt_devs.c @@ -2381,7 +2381,7 @@ void __weak eemcs_memory_reserve(void) printk(KERN_ERR"calling weak function %s\n", __FUNCTION__); } -void mt_reserve(void) +void __init mt_reserve(void) { // aee_dram_console_reserve_memory(); mrdump_reserve_memory(); diff --git a/arch/arm/mach-mt8127/mt_gpt.c b/arch/arm/mach-mt8127/mt_gpt.c index 6604ac735149..0f8b56a3d340 100644 --- a/arch/arm/mach-mt8127/mt_gpt.c +++ b/arch/arm/mach-mt8127/mt_gpt.c @@ -635,8 +635,8 @@ static long notrace mt_read_sched_clock(void) return mt_gpt_read(NULL); } -static void mt_gpt_init(void); -struct mt_clock mt6582_gpt = +static void __init mt_gpt_init(void); +struct mt_clock __refdata mt6582_gpt = { .clockevent = { diff --git a/arch/arm/mach-mt8127/mtk_eemcs_helper.c b/arch/arm/mach-mt8127/mtk_eemcs_helper.c index 72078ce51d7f..2cbe0540a506 100644 --- a/arch/arm/mach-mt8127/mtk_eemcs_helper.c +++ b/arch/arm/mach-mt8127/mtk_eemcs_helper.c @@ -166,7 +166,7 @@ int parse_eemcs_dfo_setting(void *dfo_data, int num) #endif -void eemcs_memory_reserve(void){ +void __init eemcs_memory_reserve(void){ unsigned int md5_en; if( (ext_md_usage_case&MD5_EN)== MD5_EN) { //Only MD1 enabled diff --git a/drivers/cpufreq/cpufreq_balance.c b/drivers/cpufreq/cpufreq_balance.c index 26bded227559..d54c242e4c43 100644 --- a/drivers/cpufreq/cpufreq_balance.c +++ b/drivers/cpufreq/cpufreq_balance.c @@ -872,7 +872,7 @@ EXPORT_SYMBOL(hp_based_cpu_num); #ifdef CONFIG_SMP -static void hp_work_handler(struct work_struct *work) +static void __cpuinit hp_work_handler(struct work_struct *work) { if (mutex_trylock(&bl_onoff_mutex)) { diff --git a/drivers/cpufreq/cpufreq_hotplug.c b/drivers/cpufreq/cpufreq_hotplug.c index 942a28d09523..6e6bdf357fb2 100644 --- a/drivers/cpufreq/cpufreq_hotplug.c +++ b/drivers/cpufreq/cpufreq_hotplug.c @@ -494,7 +494,7 @@ static void hp_reset_strategy(void) mutex_unlock(&hp_mutex); } -static void hp_work_handler(struct work_struct *work) +static void __cpuinit hp_work_handler(struct work_struct *work) { struct dbs_data *dbs_data = per_cpu(hp_cpu_dbs_info, 0).cdbs.cur_policy->governor_data; /* TODO: FIXME, cpu = 0 */ struct hp_dbs_tuners *hp_tuners; diff --git a/drivers/misc/mediatek/i2c/mt8127/i2c_common.c b/drivers/misc/mediatek/i2c/mt8127/i2c_common.c index 490066f92ccc..49a764a604e6 100644 --- a/drivers/misc/mediatek/i2c/mt8127/i2c_common.c +++ b/drivers/misc/mediatek/i2c/mt8127/i2c_common.c @@ -403,7 +403,7 @@ static int __exit i2c_common_remove(struct platform_device *pdev) return ret; } -static struct platform_driver i2c_common_driver= { +static struct platform_driver __refdata i2c_common_driver= { .driver = { .name = "mt-i2cd", .owner = THIS_MODULE, diff --git a/drivers/misc/mediatek/leds/leds_drv.c b/drivers/misc/mediatek/leds/leds_drv.c index 6e1fd7a64aa1..e4e82285e2df 100644 --- a/drivers/misc/mediatek/leds/leds_drv.c +++ b/drivers/misc/mediatek/leds/leds_drv.c @@ -621,7 +621,7 @@ static void mt65xx_leds_shutdown(struct platform_device *pdev) } -static struct platform_driver mt65xx_leds_driver = { +static struct platform_driver __refdata mt65xx_leds_driver = { .driver = { .name = "leds-mt65xx", .owner = THIS_MODULE,