diff options
| author | Arnd Bergmann <[email protected]> | 2019-03-07 10:22:41 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-03-07 20:38:44 +0000 |
| commit | 9505b98ccddc454008ca7efff90044e3e857c827 (patch) | |
| tree | 595e4134230d384be29854f60de6ff820af69f34 /drivers/fpga/zynqmp-fpga.c | |
| parent | cpufreq: Improve kerneldoc comments for cpufreq_cpu_get/put() (diff) | |
| download | kernel-9505b98ccddc454008ca7efff90044e3e857c827.tar.gz kernel-9505b98ccddc454008ca7efff90044e3e857c827.zip | |
cpufreq: pxa2xx: remove incorrect __init annotation
pxa_cpufreq_init_voltages() is marked __init but usually inlined into
the non-__init pxa_cpufreq_init() function. When building with clang,
it can stay as a standalone function in a discarded section, and produce
this warning:
WARNING: vmlinux.o(.text+0x616a00): Section mismatch in reference from the function pxa_cpufreq_init() to the function .init.text:pxa_cpufreq_init_voltages()
The function pxa_cpufreq_init() references
the function __init pxa_cpufreq_init_voltages().
This is often because pxa_cpufreq_init lacks a __init
annotation or the annotation of pxa_cpufreq_init_voltages is wrong.
Fixes: 50e77fcd790e ("ARM: pxa: remove __init from cpufreq_driver->init()")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Cc: All applicable <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions
