cpufreq: s3c64xx: remove incorrect __init annotation
Subsystems (2)
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
@@ -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
Quoted 5 lines · Arnd Bergmann
s3c64xx_cpufreq_config_regulatoris incorrectly annotated as__init, since the caller is also not init:WARNING:
vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the functions3c64xx_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.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Best regards,
Krzysztof
Quoted 18 lines · Arnd Bergmann
s3c64xx_cpufreq_config_regulatoris incorrectly annotated as__init, since the caller is also not init:WARNING:
vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the functions3c64xx_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.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s3c64xx-cpufreq.c +0
-0
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
Krzysztof Kozlowski
maintainerQuoted 21 lines · Viresh Kumar
Quoted 20 lines · Arnd Bergmann
s3c64xx_cpufreq_config_regulatoris incorrectly annotated as__init, since the caller is also not init:WARNING:
vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the functions3c64xx_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.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s3c64xx-cpufreq.c +0
-0@@ -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;Acked-by Viresh Kumar <[email protected]>
Rafael,
Are you going to pick it up?
Best regards,
Krzysztof
Rafael J. Wysocki
maintainerQuoted 31 lines · Krzysztof Kozlowski
Quoted 21 lines · Viresh Kumar
Quoted 20 lines · Arnd Bergmann
s3c64xx_cpufreq_config_regulatoris incorrectly annotated as__init, since the caller is also not init:WARNING:
vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the functions3c64xx_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.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s3c64xx-cpufreq.c +0
-0@@ -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;Acked-by Viresh Kumar <[email protected]>
Quoted 2 lines
Rafael,
Are you going to pick it up?
I thought I did, didn't I?
Thanks,
Rafael
Krzysztof Kozlowski
maintainerQuoted 32 lines · Rafael J. Wysocki
Quoted 31 lines · Krzysztof Kozlowski
Quoted 29 lines · Viresh Kumar
Quoted 18 lines · Arnd Bergmann
s3c64xx_cpufreq_config_regulatoris incorrectly annotated as__init, since the caller is also not init:WARNING:
vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the functions3c64xx_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.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s3c64xx-cpufreq.c +0
-0drivers/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;Acked-by Viresh Kumar <[email protected]>
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