fix section mismatch warnings

This commit is contained in:
Stricted
2018-03-22 16:29:10 +01:00
parent e4c65dc707
commit 8ca3027ec7
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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();
+2 -2
View File
@@ -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 =
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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))
{
+1 -1
View File
@@ -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;
@@ -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,
+1 -1
View File
@@ -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,