Arnd Bergmann
d8ba70c094
ARM: remove duplicate 'const' annotations'
commit 0527873b29 upstream.
gcc-7 warns about some declarations that are more 'const' than necessary:
arch/arm/mach-at91/pm.c:338:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct of_device_id const ramc_ids[] __initconst = {
arch/arm/mach-bcm/bcm_kona_smc.c:36:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct of_device_id const bcm_kona_smc_ids[] __initconst = {
arch/arm/mach-spear/time.c:207:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct of_device_id const timer_of_match[] __initconst = {
arch/arm/mach-omap2/prm_common.c:714:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct of_device_id const omap_prcm_dt_match_table[] __initconst = {
arch/arm/mach-omap2/vc.c:562:35: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct i2c_init_data const omap4_i2c_timing_data[] __initconst = {
The ones in arch/arm were apparently all introduced accidentally by one
commit that correctly marked a lot of variables as __initconst.
Fixes: 19c233b79d ("ARM: appropriate __init annotation for const data")
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-08 10:26:11 +02:00
..
2017-10-08 10:26:11 +02:00
2016-10-06 07:59:37 -07:00
2017-08-06 18:59:47 -07:00
2017-01-12 11:39:33 +01:00
2017-08-11 08:49:36 -07:00
2017-06-14 15:06:05 +02:00
2017-09-07 08:35:40 +02:00
2017-02-23 17:44:36 +01:00
2017-10-08 10:26:11 +02:00
2017-10-08 10:26:11 +02:00
2017-10-08 10:26:11 +02:00
2017-04-12 12:41:19 +02:00
2016-10-07 21:18:42 -07:00
2016-11-26 15:26:20 -08:00
2016-10-07 21:34:49 -07:00
2016-10-17 13:44:03 -07:00
2017-10-08 10:26:11 +02:00
2017-01-15 13:42:56 +01:00
2016-10-07 21:18:42 -07:00
2016-10-07 09:12:19 -07:00
2016-10-07 21:18:42 -07:00
2017-10-08 10:26:11 +02:00
2016-10-22 18:25:35 +09:00
2017-01-26 08:24:43 +01:00
2017-01-15 13:42:56 +01:00
2017-09-13 14:13:37 -07:00
2017-10-05 09:44:05 +02:00
2016-10-07 21:38:00 -07:00
2017-10-08 10:26:04 +02:00
2016-10-06 08:56:43 +01:00