[PATCH 8/9] ARM: zImage: remove the static qualifier from global data variables
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Fri Apr 29 16:12:37 EDT 2011
On Thu, Apr 28, 2011 at 06:50:23PM -0400, Nicolas Pitre wrote:
> From: Nicolas Pitre <nicolas.pitre at linaro.org>
>
> To be able to relocate the .bss section at run time independently from
> the rest of the code, we must make sure that no GOTOFF relocations are
> used with .bss symbols. This usually means that no global variables can
> be marked static unless they're also const.
>
> Let's remove the static qualifier from current offenders, or turn them
> into const variables when possible. Next commit will ensure the build
> fails if one of those is reintroduced due to otherwise enforced coding
> standards for the kernel.
>
> Signed-off-by: Nicolas Pitre <nicolas.pitre at linaro.org>
> ---
> arch/arm/mach-davinci/include/mach/uncompress.h | 5 +++--
> arch/arm/mach-gemini/include/mach/uncompress.h | 2 +-
> arch/arm/mach-iop32x/include/mach/uncompress.h | 2 +-
> arch/arm/mach-iop33x/include/mach/uncompress.h | 2 +-
> arch/arm/mach-ixp4xx/include/mach/uncompress.h | 2 +-
> arch/arm/mach-mmp/include/mach/uncompress.h | 2 +-
> arch/arm/mach-mxs/include/mach/uncompress.h | 2 +-
> arch/arm/mach-ns9xxx/include/mach/uncompress.h | 2 +-
mach-ns9xxx is about to be removed. So maybe just drop the corresponding
hunk.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list