ARM: clps711x: mark clps711x_compat as const
authorArnd Bergmann <arnd@arndb.de>
Tue, 20 Feb 2018 16:24:50 +0000 (17:24 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 22 Feb 2018 16:42:42 +0000 (17:42 +0100)
commit01a6e1267e741a91c6cdb4604cd2f898166e03f0
tree778f1a3b98e33da1b1becb0eb75e829dc30fec29
parentb0e8ed933a57042080763b587c8f5a9bec958b0a
ARM: clps711x: mark clps711x_compat as const

The array of string pointers is put in __initconst, and the strings themselves
are marke 'const' but the the pointers are not, which caused a warning when
built with LTO:

arch/arm/mach-clps711x/board-dt.c:72:20: error: 'clps711x_compat' causes a section type conflict with 'feroceon_ids'
 static const char *clps711x_compat[] __initconst = {

This marks the array itself const as well, which was certainly the
intention originally.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-clps711x/board-dt.c