Skip to contentSkip to conversation

cpufreq: s3c64xx: remove incorrect __init annotation

PATCH In review Arnd Bergmann 4 participants 6 messages Dec 16, 2016 – Jan 3, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: s3c64xx: remove incorrect __init annotation

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s3c64xx-cpufreq.c +1 -1
index 176e84cc3991..0cb9040eca49 100644
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
 }
 
 #ifdef CONFIG_REGULATOR
-static void __init s3c64xx_cpufreq_config_regulator(void)
+static void s3c64xx_cpufreq_config_regulator(void)
 {
 	int count, v, i, found;
 	struct cpufreq_frequency_table *freq;
Signature · 1 line
2.9.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Arnd Bergmann

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

Quoted 8 lines

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Best regards,
Krzysztof

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 18 lines · Arnd Bergmann

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s3c64xx-cpufreq.c +0 -0
index 176e84cc3991..0cb9040eca49 100644

drivers/cpufreq/s3c64xx-cpufreq.c static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, · line 113

Quoted 8 lines
drivers/cpufreq/s3c64xx-cpufreq.c +1 -1
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
 }
 
 #ifdef CONFIG_REGULATOR
-static void __init s3c64xx_cpufreq_config_regulator(void)
+static void s3c64xx_cpufreq_config_regulator(void)
 {
 	int count, v, i, found;
 	struct cpufreq_frequency_table *freq;
Signature · 1 line
viresh
#3 lore raw
Quoted 21 lines · Viresh Kumar
Quoted 20 lines · Arnd Bergmann

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s3c64xx-cpufreq.c +0 -0
index 176e84cc3991..0cb9040eca49 100644
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
 }
 
Quoted 8 lines

drivers/cpufreq/s3c64xx-cpufreq.c static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, · line 113

Quoted 6 lines
drivers/cpufreq/s3c64xx-cpufreq.c +1 -1
 #ifdef CONFIG_REGULATOR
-static void __init s3c64xx_cpufreq_config_regulator(void)
+static void s3c64xx_cpufreq_config_regulator(void)
 {
 	int count, v, i, found;
 	struct cpufreq_frequency_table *freq;

Rafael,
Are you going to pick it up?

Best regards,
Krzysztof

#4 lore raw
Quoted 31 lines · Krzysztof Kozlowski
Quoted 21 lines · Viresh Kumar
Quoted 20 lines · Arnd Bergmann

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s3c64xx-cpufreq.c +0 -0
index 176e84cc3991..0cb9040eca49 100644
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
 }
 
Quoted 8 lines

drivers/cpufreq/s3c64xx-cpufreq.c static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, · line 113

Quoted 6 lines
drivers/cpufreq/s3c64xx-cpufreq.c +1 -1
 #ifdef CONFIG_REGULATOR
-static void __init s3c64xx_cpufreq_config_regulator(void)
+static void s3c64xx_cpufreq_config_regulator(void)
 {
    int count, v, i, found;
    struct cpufreq_frequency_table *freq;
Quoted 2 lines

Rafael,
Are you going to pick it up?

I thought I did, didn't I?

Thanks,
Rafael

#5 lore raw
Quoted 32 lines · Rafael J. Wysocki
Quoted 31 lines · Krzysztof Kozlowski
Quoted 29 lines · Viresh Kumar
Quoted 18 lines · Arnd Bergmann

s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older.

---
 drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s3c64xx-cpufreq.c +0 -0
index 176e84cc3991..0cb9040eca49 100644

drivers/cpufreq/s3c64xx-cpufreq.c static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, · line 113

Quoted 8 lines
drivers/cpufreq/s3c64xx-cpufreq.c +1 -1
@@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
 }
 
 #ifdef CONFIG_REGULATOR
-static void __init s3c64xx_cpufreq_config_regulator(void)
+static void s3c64xx_cpufreq_config_regulator(void)
 {
    int count, v, i, found;
    struct cpufreq_frequency_table *freq;
Quoted 4 lines
Quoted 2 lines

Rafael,
Are you going to pick it up?

I thought I did, didn't I?

Right, you did. I missed that. Thanks!

Best regards,
Krzysztof