Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543590

Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation

From Krzysztof Kozlowski <krzk@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation
Date 2016-12-16 18:00 +0100
Message-ID <sP41r-6cL-5@gated-at.bofh.it> (permalink)
References <sOWGC-1t7-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Dec 16, 2016 at 10:06:15AM +0100, Arnd Bergmann wrote:
> 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.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/cpufreq/s3c64xx-cpufreq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] cpufreq: s3c64xx: remove incorrect __init annotation Arnd Bergmann <arnd@arndb.de> - 2016-12-16 10:10 +0100
  Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation Krzysztof Kozlowski <krzk@kernel.org> - 2016-12-16 18:00 +0100
  Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation Viresh Kumar <viresh.kumar@linaro.org> - 2017-01-02 08:10 +0100
    Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation Krzysztof Kozlowski <krzk@kernel.org> - 2017-01-02 18:40 +0100
      Re: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation "Rafael J. Wysocki" <rafael@kernel.org> - 2017-01-02 22:30 +0100

csiph-web