]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: r8a7793: proper constness with __initconst
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 22 Nov 2015 01:41:07 +0000 (20:41 -0500)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 23 Nov 2015 01:13:13 +0000 (17:13 -0800)
commit3f706b2be7c1b205c7da2eb9010c02bc98612d1f
treebb5efabbad024abb8cee80df86449a376fa8817a
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ARM: shmobile: r8a7793: proper constness with __initconst

Both the pointer array and the pointed data have to be const when using
__initconst to be correct.  This also fixes LTO builds that otherwise
fail with section mismatch errors.

Fixes: 6cd87be22e40 ("ARM: shmobile: Basic r8a7793 SoC support")
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-r8a7793.c