From patchwork Thu May 11 11:50:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 99621 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp688702qge; Thu, 11 May 2017 04:51:57 -0700 (PDT) X-Received: by 10.98.135.71 with SMTP id i68mr5655204pfe.92.1494503517180; Thu, 11 May 2017 04:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494503517; cv=none; d=google.com; s=arc-20160816; b=YWaBWYfVB9+5D8mg5KvqpnNAP/FfoUBbg1d4SYLPtqYcnAGrmJrY3VwVyCEXdwaSqS Pn5NMTmRRLf5ZIY71YMfciV6BgDEj5QQFGSbuR0BM+KNWDZUGo8Js8c0Lue8LK73+COr DdWnwQvauOqq1xnGL/9y6auuiUAlP09ydGChTf+FS64fceACgMbEaXw809ryM60f7/HJ XmIBns+MqsKqxmx+vXbjZxi5OFhRUJhST1NhLAs3HlOiRrKhN4dCYlgKDE9hA0YaEYn8 464jLx3mvnIjAbtY6//yLetOkHCwi7ZTU2ttVUWEWfzGlDhAtp3MjSqNE0j5bnka5vUM gCnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+rEhlDUS+ePrDvAuoXeFp6Fj8lvS+VrHXYk1CJBAPvw=; b=kzhdEeXJ78L+Ii3rX89FziAxIVBUlOTv2ABdgx3Up36RgRxdPYGmgRpZSWRA9cdiFY ypl3745XlaRfwvn64UPm6cZ6wXZ177FFEOprxRb/vdmiM6oA0nDQPqWuW+9cP/Yx1rsG OMW+KF7gHWlxSFcajmsN681fD50nedTAeWGqFKuGnXYKe5EarghjAdrvr4AsW2JT24Ei bIHvaSyRB/FhguDUN32/2zuDA4TmsVFT+pnPg2lOD6dOttPW4KnwfjpocYmBOyruJn2p ydGMC6kRNWOfu5i7fM0EqvSgkwQCiuEozBEA1TLFBDK1JaEpE/kbu6hxLnOKpfdra7RW ByTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si1621167pgk.91.2017.05.11.04.51.56; Thu, 11 May 2017 04:51:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbdEKLvz (ORCPT + 3 others); Thu, 11 May 2017 07:51:55 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:53169 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932405AbdEKLvy (ORCPT ); Thu, 11 May 2017 07:51:54 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0M8dKp-1dw3pL1IR9-00wI0K; Thu, 11 May 2017 13:51:04 +0200 From: Arnd Bergmann To: arm@kernel.org Cc: Nicolas Pitre , Arnd Bergmann , Nicolas Ferre , Alexandre Belloni , Russell King , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Krzysztof Halasa , Rajendra Nayak , Paul Walmsley , Tony Lindgren , Viresh Kumar , Wenyou Yang , Olof Johansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH] ARM: remove duplicate 'const' annotations' Date: Thu, 11 May 2017 13:50:16 +0200 Message-Id: <20170511115059.2997141-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:lUh/W59QI1oA8lY33l05xFEDifyD7nhbDN4tu+lPQ1dm79OwytI zebSAfuC8k1llwhfE3HtUkSIo1gE+PI21OrtELcI60hJb4MCZgfDAlRRunPtC+6LnkiK7z1 Tz6JzONIQReakpEvZTIQNoadJLzFZ1/8Eqaj+7ngDZT80JuKm2XLgBaGLwiIMQgAp9hMOyd GmiIQcpXQw9+6zHJjIy3g== X-UI-Out-Filterresults: notjunk:1; V01:K0:s2H0mpCbeZE=:TSaenx746+3zeK+7m2QNgn HGrhq0qJMBKVcxbAAFOg+uuLiklV9MvkKEEphBzwDk1sXJjOTHA3f0WoT/wzafLmMSc0bNm4y Jlk4f0kIcsjyY61KKvZTUAOtaT800smz+AijLasQSo6K2IQRQuLDpA90l3XSJYdJJzqAZ1gc0 THoq2ndONUKi6UtCwvWTy5rP5Hvn3/seJeC6+3huVezddBgytkWI1s4hnTHvnflJonf0pDd79 7m9S1bFpAVGZ0L5DzkRr1ztK+uSHg7rv5JgoaM8cRtMz9wcsufTfu5ZmJnS1TX/jXCjN1VBi1 YppFPbLhTFLSiVE2Et274gOd1FcjWJC/piyU3lVzHiEEy+FY+Ymmm4PTqDqF6oe08QfkQscZm T1ruubZguUxQqzS9LutZEX2sYewbXgTJhlfPTc6fIvfx5GWqtrnioBs2jD1kdMgU7ssjDGyxr owjcj6g+7L6fPHQR1mzqilwOGdRH0X4w981EHVI9N13ja2iaBMJX3R30DwLQqgCbBYhE1bRSs VqpuwPxfyzMw8dxevpIqyCV0zaUXO7gykBEi8XovvnVPzmY/U06FozyoUSJ4uO/UMem8Xkh2P VSXkrctBQU09mWhNu0MuzK4mCGcAAj5T87bEp1gAGvq3C3DylpLc82WMvnYfFiLmmPeDqwTfa AAEu7aS48n03e2DcM5ngRP1og0LvDFTJq1UEv5IB7S2ChJ4KU/KEpUnHwkts7oFavwhM= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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. Cc: Nicolas Pitre Fixes: 19c233b79d1a ("ARM: appropriate __init annotation for const data") Signed-off-by: Arnd Bergmann --- arch/arm/mach-at91/pm.c | 2 +- arch/arm/mach-bcm/bcm_kona_smc.c | 2 +- arch/arm/mach-cns3xxx/core.c | 2 +- arch/arm/mach-omap2/prm_common.c | 2 +- arch/arm/mach-omap2/vc.c | 2 +- arch/arm/mach-spear/time.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Florian Fainelli Acked-by: Krzysztof HaƂasa diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 2cd27c830ab6..283e79ab587d 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -335,7 +335,7 @@ static const struct ramc_info ramc_infos[] __initconst = { { .idle = sama5d3_ddr_standby, .memctrl = AT91_MEMCTRL_DDRSDR}, }; -static const struct of_device_id const ramc_ids[] __initconst = { +static const struct of_device_id ramc_ids[] __initconst = { { .compatible = "atmel,at91rm9200-sdramc", .data = &ramc_infos[0] }, { .compatible = "atmel,at91sam9260-sdramc", .data = &ramc_infos[1] }, { .compatible = "atmel,at91sam9g45-ddramc", .data = &ramc_infos[2] }, diff --git a/arch/arm/mach-bcm/bcm_kona_smc.c b/arch/arm/mach-bcm/bcm_kona_smc.c index 5157faa502eb..3937bd5d452f 100644 --- a/arch/arm/mach-bcm/bcm_kona_smc.c +++ b/arch/arm/mach-bcm/bcm_kona_smc.c @@ -33,7 +33,7 @@ struct bcm_kona_smc_data { unsigned result; }; -static const struct of_device_id const bcm_kona_smc_ids[] __initconst = { +static const struct of_device_id bcm_kona_smc_ids[] __initconst = { {.compatible = "brcm,kona-smc"}, {.compatible = "bcm,kona-smc"}, /* deprecated name */ {}, diff --git a/arch/arm/mach-cns3xxx/core.c b/arch/arm/mach-cns3xxx/core.c index 03da3813f1ab..7d5a44a06648 100644 --- a/arch/arm/mach-cns3xxx/core.c +++ b/arch/arm/mach-cns3xxx/core.c @@ -346,7 +346,7 @@ static struct usb_ohci_pdata cns3xxx_usb_ohci_pdata = { .power_off = csn3xxx_usb_power_off, }; -static const struct of_dev_auxdata const cns3xxx_auxdata[] __initconst = { +static const struct of_dev_auxdata cns3xxx_auxdata[] __initconst = { { "intel,usb-ehci", CNS3XXX_USB_BASE, "ehci-platform", &cns3xxx_usb_ehci_pdata }, { "intel,usb-ohci", CNS3XXX_USB_OHCI_BASE, "ohci-platform", &cns3xxx_usb_ohci_pdata }, { "cavium,cns3420-ahci", CNS3XXX_SATA2_BASE, "ahci", NULL }, diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index 2b138b65129a..dc11841ca334 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c @@ -711,7 +711,7 @@ static struct omap_prcm_init_data scrm_data __initdata = { }; #endif -static const struct of_device_id const omap_prcm_dt_match_table[] __initconst = { +static const struct of_device_id omap_prcm_dt_match_table[] __initconst = { #ifdef CONFIG_SOC_AM33XX { .compatible = "ti,am3-prcm", .data = &am3_prm_data }, #endif diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index 2028167fff31..d76b1e5eb8ba 100644 --- a/arch/arm/mach-omap2/vc.c +++ b/arch/arm/mach-omap2/vc.c @@ -559,7 +559,7 @@ struct i2c_init_data { u8 hsscll_12; }; -static const struct i2c_init_data const omap4_i2c_timing_data[] __initconst = { +static const struct i2c_init_data omap4_i2c_timing_data[] __initconst = { { .load = 50, .loadbits = 0x3, diff --git a/arch/arm/mach-spear/time.c b/arch/arm/mach-spear/time.c index 4878ba90026d..289e036c9c30 100644 --- a/arch/arm/mach-spear/time.c +++ b/arch/arm/mach-spear/time.c @@ -204,7 +204,7 @@ static void __init spear_clockevent_init(int irq) setup_irq(irq, &spear_timer_irq); } -static const struct of_device_id const timer_of_match[] __initconst = { +static const struct of_device_id timer_of_match[] __initconst = { { .compatible = "st,spear-timer", }, { }, };