android_kernel_oneplus_msm8998/arch/arm/mach-at91
Arnd Bergmann d32ee70260 ARM: remove duplicate 'const' annotations'
commit 0527873b29b077fc8e656acd63e1866b429fef55 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:14:20 +02:00
..
at91rm9200.c ARM: SoC cleanups for v4.3 2015-09-01 12:10:20 -07:00
at91sam9.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
generic.h ARM: at91: properly initialize timer 2015-03-16 17:03:04 +01:00
Kconfig ARM: at91: fix pinctrl driver selection 2015-12-04 18:54:53 +01:00
Makefile ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h 2015-05-20 16:37:49 +02:00
pm.c ARM: remove duplicate 'const' annotations' 2017-10-08 10:14:20 +02:00
pm.h ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h 2015-05-20 16:37:49 +02:00
pm_suspend.S ARM: at91: pm: at91_pm_suspend_in_sram() must be 8-byte aligned 2015-10-19 22:58:44 +02:00
sama5.c ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
soc.c ARM: at91: add soc detection infrastructure 2015-03-13 15:11:04 +01:00
soc.h ARM: at91/soc: add basic support for new sama5d2 SoC 2015-08-05 10:40:21 +02:00