From patchwork Sat Nov 25 09:41:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 10074781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E7F860383 for ; Sat, 25 Nov 2017 09:42:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF2D298EC for ; Sat, 25 Nov 2017 09:42:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F332298F1; Sat, 25 Nov 2017 09:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E79B1298EC for ; Sat, 25 Nov 2017 09:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vm7eoYBUTTIBLy77JQ/WMvJRr5HgCfUWHqjrqmG8+Eo=; b=iTBdR4JVyu5S1f O8QCW6Ag54NvB8aMLZt9NALA+aKqD1LC3nmCCeAT1wxg+WSNWTD60XqUevtsVl0soBMkhD2mOd3Bh PiNou4HdHf4NkJIE19eNc2HlrSEi4ziLTWMskfTWGSFbjvHZQYNHTroyEfyVKpe7f5d5qQGlWJ8ew AwAtmCRX1ftaVV6FScwKF92YdRkEyPYnE8bE6rXNZV2hUf0mazLtcvQo5Bq8wVKAiNZKBHUgv5ZN/ YH4hM3Gw7208CsLmcHw2PhD+rKSrYvJaheRP7yflf3Uij8KPQop+93Mz5eLXwp4CWIhifLsh0eum5 +B3Q5anXEg615EaXnEEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eIWyP-0005gU-3N; Sat, 25 Nov 2017 09:42:09 +0000 Received: from mail-cys01nam02on0075.outbound.protection.outlook.com ([104.47.37.75] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIWyK-0005f9-S4 for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2017 09:42:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4K/A8GunLU/8vaJge+XNJ+5WSP8jy0BKuKe1lfxrnU4=; b=csntPvXUBx64rmbXJO5P4dOZzKcrLhiJOct76JktZQtFH6Uk/dQ9915JMPBJhPt1khdHSZMwtd33YrYJCu2JEcBZA0x/ql40A9emgfZS9c9LQ+3e9g00sLPDeFiAklxQK9WXDTPDL8wIWUTlUZBZAC8cMftqdjNDibnRyK2nUvU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (42.107.70.173) by DM5PR0701MB3831.namprd07.prod.outlook.com (2603:10b6:4:7f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Sat, 25 Nov 2017 09:41:39 +0000 From: Yury Norov To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: fix missing 'const' qualifiers Date: Sat, 25 Nov 2017 12:41:27 +0300 Message-Id: <20171125094127.7536-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [42.107.70.173] X-ClientProxiedBy: VI1P189CA0025.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::38) To DM5PR0701MB3831.namprd07.prod.outlook.com (2603:10b6:4:7f::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3963be96-4344-47f0-8c0c-08d533e8baa2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:DM5PR0701MB3831; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3831; 3:kzJ+lAUXlOZzFovzdsoyPCnvZQq2O+QNS7mUyX6yVYZM1v8yQ+UJ42u3fY2pP1Yv+SHpvgRpdx+/f7Bbgqs/PvuPjeRZPJnHYThA04O3ejYUdW4VafiENd3Ox5LDK0NiQhOeIWgFHzgf7XVEunE/L6JA2BGeiJk1qfFnmZjW38wqz24LW7p8WCHV1QtlbWcaAHJ4jrrMdgMCaEwin7b2RfSQ2mGPVXhY1eNA1pcYs1L2FzkcG5AbbimnhezdWWOf; 25:si9FdSMctPGrW7n3h8BU1cwoyBYdBCwallMu1q+Qm0VAgyiLsvclaAxxm5l51m1sn+rL+6Z9P3z5xp9egQZjTzTsCQNkDKk+1qKH5jI6MTrf/NKaZiEUSzvRKXAIrRyh1txcAdsQ1da0zlfS0XqAwzxwlzMXwGbaR7qvHRidiDHa9rQBcZ2ezjYFMihmr+JnDYxOckjMeNEi0TCP2LPLAPHSI3xiOc2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jZgackteG6Pb0cGm0c+tDh4SzXGebivlclxDBQRdPpCN4xfxLcEfHUeBL6m1f660wc+ff5xYYw5il9qM1t9B4PIyh16mkAcBHWt1W7XrLIwFqPFBeaxkRtPC1cWKUPXN68sI9oVc478l6JpnLSP1E5E9oQwguZEqqnoppMq8DuqR2435645aEtbjDtQb0jyyNPUdXHWilMSPf/vGZFEfa1DLk04FZ585t2nJZvca30cInQdMaA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3231022)(3002001)(6041248)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148)(201708071742011); SRVR:DM5PR0701MB3831; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR0701MB3831; X-Forefront-PRVS: 0502983C0E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(346002)(366004)(376002)(189002)(199003)(7736002)(36756003)(2906002)(48376002)(66066001)(53936002)(81166006)(81156014)(6486002)(305945005)(8676002)(316002)(52116002)(16586007)(6496006)(54906003)(6666003)(16526018)(50466002)(33646002)(106356001)(105586002)(76506005)(5660300001)(189998001)(575784001)(47776003)(72206003)(478600001)(25786009)(39060400002)(3846002)(6116002)(1076002)(50226002)(51416003)(42882006)(97736004)(50986999)(5009440100003)(8936002)(68736007)(7416002)(101416001)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR0701MB3831; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR0701MB3831; 23:xl2+vy8Cst+Ei/bs0al72YRSCGoqyLaf0oZDhnu?= =?us-ascii?Q?1bG6HOsragujUM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x37AW3H27eHvhUHY3jN9mkxL8ifcpxN5zZ/zeBBYyK2PJ+SO0P4cGDdtc+I7mxb5ioeUvvZaClfBAywxEqSHyA1wX6sXM68mLe4XGwGgIML5d3KmnEkBgBAQ+3VJ1/zN2pdFHTraXEG6d0xEs1H5akMpyF8jBUTPtDjFTfXTlNkMyauHBU6m3nMVdAodQCAWRQCWpfG0k1EuaMC+Mot4zqpDqi9UhU32EI+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2017 09:41:39.0374 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3963be96-4344-47f0-8c0c-08d533e8baa2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3831 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171125_014205_007426_E062DC48 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andi Kleen , Kees Cook , Ard Biesheuvel , Peter Zijlstra , Catalin Marinas , Nick Desaulniers , Will Deacon , Yury Norov , Alexander Potapenko , Sami Tolvanen , Alex Matveev , Stephen Boyd , Maxim Kuvyrkov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It was discovered during LTO-enabled compilation with gcc/ld.bfd. Signed-off-by: Yury Norov Reviewed-by: Nick Desaulniers --- arch/arm64/kernel/cpu_ops.c | 7 ++++--- drivers/clk/hisilicon/crg-hi3516cv300.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kernel/cpu_ops.c b/arch/arm64/kernel/cpu_ops.c index d16978213c5b..36178002f0c3 100644 --- a/arch/arm64/kernel/cpu_ops.c +++ b/arch/arm64/kernel/cpu_ops.c @@ -31,13 +31,14 @@ extern const struct cpu_operations cpu_psci_ops; const struct cpu_operations *cpu_ops[NR_CPUS] __ro_after_init; -static const struct cpu_operations *dt_supported_cpu_ops[] __initconst = { +static const struct cpu_operations *const dt_supported_cpu_ops[] __initconst = { &smp_spin_table_ops, &cpu_psci_ops, NULL, }; -static const struct cpu_operations *acpi_supported_cpu_ops[] __initconst = { +static const struct cpu_operations + *const acpi_supported_cpu_ops[] __initconst = { #ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL &acpi_parking_protocol_ops, #endif @@ -47,7 +48,7 @@ static const struct cpu_operations *acpi_supported_cpu_ops[] __initconst = { static const struct cpu_operations * __init cpu_get_ops(const char *name) { - const struct cpu_operations **ops; + const struct cpu_operations *const *ops; ops = acpi_disabled ? dt_supported_cpu_ops : acpi_supported_cpu_ops; diff --git a/drivers/clk/hisilicon/crg-hi3516cv300.c b/drivers/clk/hisilicon/crg-hi3516cv300.c index 2007123832bb..53450b651e4c 100644 --- a/drivers/clk/hisilicon/crg-hi3516cv300.c +++ b/drivers/clk/hisilicon/crg-hi3516cv300.c @@ -204,7 +204,7 @@ static const struct hisi_crg_funcs hi3516cv300_crg_funcs = { /* hi3516CV300 sysctrl CRG */ #define HI3516CV300_SYSCTRL_NR_CLKS 16 -static const char *wdt_mux_p[] __initconst = { "3m", "apb" }; +static const char *const wdt_mux_p[] __initconst = { "3m", "apb" }; static u32 wdt_mux_table[] = {0, 1}; static const struct hisi_mux_clock hi3516cv300_sysctrl_mux_clks[] = {