• A
    ARM: remove duplicate 'const' annotations' · 0527873b
    Arnd Bergmann 提交于
    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: 19c233b7 ("ARM: appropriate __init annotation for const data")
    Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
    Acked-by: NTony Lindgren <tony@atomide.com>
    Acked-by: NNicolas Pitre <nico@linaro.org>
    Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
    Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
    Acked-by: NKrzysztof Hałasa <khalasa@piap.pl>
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    0527873b
bcm_kona_smc.c 5.0 KB