WSL2-Linux-Kernel/arch/arm/mach-shmobile
Uwe Kleine-König 543c5040f5 ARM: make arrays containing machine compatible strings const
The definition

	static const char *axxia_dt_match[] __initconst = {
		...

defines a changable array of constant strings. That is you must not do:

	*axxia_dt_match[0] = 'k';

but

	axxia_dt_match[0] = "different string";

is fine. So the annotation __initconst is wrong and yields a compiler
error when other really const variables are added with __initconst.

As the struct machine_desc member dt_compat is declared as

	const char *const *dt_compat;

making the arrays const is the better alternative over changing all
annotations to __initdata.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-02-19 09:44:17 +01:00
..
include/mach
Kconfig
Makefile
Makefile.boot
board-ape6evm-reference.c
board-ape6evm.c
board-armadillo800eva.c
board-bockw-reference.c
board-bockw.c
board-kzm9g-reference.c
board-kzm9g.c
board-mackerel.c
board-marzen-reference.c
board-marzen.c
clock-r8a73a4.c
clock-r8a7740.c
clock-r8a7778.c
clock-r8a7779.c
clock-sh73a0.c
clock-sh7372.c
clock.c
clock.h
common.h
console.c
cpufreq.c
cpuidle.c
dma-register.h
entry-intc.S
headsmp-scu.S
headsmp.S
intc-sh73a0.c
intc-sh7372.c
intc.h
irqs.h
platsmp-apmu.c
platsmp-apmu.h
platsmp-scu.c
platsmp.c
pm-r8a7740.c
pm-r8a7779.c
pm-r8a7790.c
pm-r8a7791.c
pm-rcar.c
pm-rcar.h
pm-rmobile.c
pm-rmobile.h
pm-sh73a0.c
pm-sh7372.c
r8a73a4.h
r8a7740.h
r8a7778.h
r8a7779.h
r8a7790.h
r8a7791.h
rcar-gen2.h
setup-emev2.c
setup-r7s72100.c
setup-r8a73a4.c
setup-r8a7740.c
setup-r8a7778.c
setup-r8a7779.c
setup-r8a7790.c
setup-r8a7791.c
setup-r8a7794.c
setup-rcar-gen2.c
setup-sh73a0.c
setup-sh7372.c
sh-gpio.h
sh73a0.h
sh7372.h
sleep-sh7372.S
smp-emev2.c
smp-r8a7779.c
smp-r8a7790.c
smp-r8a7791.c
smp-sh73a0.c
suspend.c
timer.c