OSDN Git Service

ARM: appropriate __init annotation for const data
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 27 Jul 2015 22:27:52 +0000 (18:27 -0400)
committerOlof Johansson <olof@lixom.net>
Tue, 28 Jul 2015 11:55:27 +0000 (13:55 +0200)
commit19c233b79d1af7b5af1ec68c1172848648184449
tree72f3f43b983202fdc3483f803778e3d7c2f457c0
parenta1156814606c0bd5f8725ff7feac21e58bc3b16d
ARM: appropriate __init annotation for const data

Init data marked const should be annotated with __initconst for
correctness and not __initdata.  In some cases the array gathering
references to that data has to be marked const as well. This fixes
LTO builds that otherwise fail with section mismatch errors.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
40 files changed:
arch/arm/kernel/psci.c
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/at91sam9.c
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/sama5.c
arch/arm/mach-bcm/bcm_5301x.c
arch/arm/mach-bcm/bcm_kona_smc.c
arch/arm/mach-clps711x/board-autcpu12.c
arch/arm/mach-cns3xxx/core.c
arch/arm/mach-davinci/da850.c
arch/arm/mach-davinci/da8xx-dt.c
arch/arm/mach-digicolor/digicolor.c
arch/arm/mach-imx/mach-imx7d.c
arch/arm/mach-lpc32xx/phy3250.c
arch/arm/mach-mmp/mmp-dt.c
arch/arm/mach-mmp/mmp2-dt.c
arch/arm/mach-mxs/mach-mxs.c
arch/arm/mach-omap2/prm_common.c
arch/arm/mach-omap2/vc.c
arch/arm/mach-omap2/voltagedomains3xxx_data.c
arch/arm/mach-omap2/voltagedomains44xx_data.c
arch/arm/mach-omap2/voltagedomains54xx_data.c
arch/arm/mach-pxa/pxa-dt.c
arch/arm/mach-realview/realview-dt.c
arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c
arch/arm/mach-shmobile/board-bockw-reference.c
arch/arm/mach-shmobile/board-bockw.c
arch/arm/mach-shmobile/board-marzen-reference.c
arch/arm/mach-shmobile/board-marzen.c
arch/arm/mach-shmobile/setup-r7s72100.c
arch/arm/mach-shmobile/setup-r8a73a4.c
arch/arm/mach-shmobile/setup-r8a7740.c
arch/arm/mach-shmobile/setup-r8a7778.c
arch/arm/mach-shmobile/setup-r8a7779.c
arch/arm/mach-shmobile/setup-r8a7791.c
arch/arm/mach-shmobile/setup-sh73a0.c
arch/arm/mach-spear/time.c
arch/arm/mach-sti/board-dt.c
arch/arm/mach-zx/zx296702.c