Received: by 10.223.164.202 with SMTP id h10csp3091003wrb; Sat, 25 Nov 2017 01:42:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMbRpdHfSGtAmqloeg4UkAX0Q1H2Rh+P0uTq/k8/yDHICqY88RcUdmuXIc6WqsU7KVNfC4bn X-Received: by 10.159.218.73 with SMTP id x9mr29524863plv.92.1511602953985; Sat, 25 Nov 2017 01:42:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511602953; cv=none; d=google.com; s=arc-20160816; b=hhqA6VWf8cQoRl/nZodH77bwfUsXrcb3b1j216Ug8oNt5wGDu7/QBVqiQ2GmHqMKj4 RoVcV6LB6FJQntT3ZCk17mManf9KKda3F6XRL8QVhdc6cxgB63RDPVDXroflliyo6hcK crmR/UaV3XR/4NN/N9PDxIIXyXOsim2bY5ulc4I2DhGOaHztyBq5OkWJz6vDQoSNpXH8 p61yETdQGoSoQGMhu2CRrNaG2aONGuguRvYwGiQlCObbSvYYWiCWlpAp5+8c/vTmpJ9W bJNTMjvlUQn7KAsIStAXsdSP+0IDuPsVRr7YN594ke2LAaQXBC830bgHEg5Y7PsGf87l Z8HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=4K/A8GunLU/8vaJge+XNJ+5WSP8jy0BKuKe1lfxrnU4=; b=W8hOJ/IAH238jWi5Kd1NJM3unD/0DQIbIVye0ukb5LcMBZbICfkQvTKP8EASqTnZry +U2eX0R21S23MLvQU0oE0ZD6F8QXiFSu3psSPcNr7de8kR9388EKK8isOl0hzdAgWNh+ NLUPsPsxdl6eFRTQxWWFTskV+WagMSx+/xk0yPFF1wJv1X/srFfVZ2nC3e45VWQ1pQsi Dvet5OiljZSccfdRoBLDtLGaXN76Mm0OF4I1GoyjgoBDgZB6uPG3Xax0FsGkRhfqbQx2 WGBksJAaFu11CMpoW2GKDcsESsyT2y+1VUgx4wAoxLfRa3kYghGgCbSYe5/DWTm7kNAh NGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=csntPvXU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 a12si19991081pls.398.2017.11.25.01.42.21; Sat, 25 Nov 2017 01:42:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=csntPvXU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdKYJlq (ORCPT + 79 others); Sat, 25 Nov 2017 04:41:46 -0500 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:26688 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750935AbdKYJln (ORCPT ); Sat, 25 Nov 2017 04:41:43 -0500 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 Cc: Yury Norov , Alex Matveev , Alexander Potapenko , Andi Kleen , Ard Biesheuvel , Catalin Marinas , Kees Cook , Mark Rutland , Maxim Kuvyrkov , Nick Desaulniers , Peter Zijlstra , Sami Tolvanen , Stephen Boyd , Will Deacon 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 Content-Type: text/plain 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/PvuPjeRZPJnHYThA04O3ejYUdW4VafiENd3Ox5LDK0NiQhOe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NsY7Y4hboxDyPY+PjrX93QfR7NgajtGthAK+rTPUqJtgsGj7ju9+3dQaFsYemvnSajDAr5lmD2EBErBYsQiZALK7IySI1CYYfxEWP/0On64jiip7KEb0EwrL8n0GVR56roDw45joKbnqXB62aMmdk7GEI6cspt43uQgMNkSM6lWZkb/Af0CEeSATiyQ7Mvr1J9pGRuvNk00shgfFNkwvZAMIajF5ufyXcMx8d4/SNgsZdzNXXVTuD78jU81bsVnSoEOMjzDVXCimFb3STzhXhDPvR8oWMHd+V0H17oY9T0GAUPg+IFCx4RVEXpELT958Y/o=;4:IpvFyZRcc9kyflatxOxnDbp+i8q9SuYBA1ZSjZgackteG6Pb0cGm0c+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?1bG6HOsragujUMz4WGlhms1tUmpGHyTTQONzu1cxYAiLQTiKCOqvUGqqHfd8?= =?us-ascii?Q?FpISBkHOkQvp09R1UjZQwGS4pEng5E9RO6ZitNZSzZHjpc3J6hNP7Q9htlu6?= =?us-ascii?Q?L6i4TH0fualh5XRNIPdONh8BchuYQZCqUhj0PDwrJQRHWHkJDZte95WSSK9c?= =?us-ascii?Q?BufvbGgp9ZhBSK06QMt36JeobDCchEBcDNhZwyL/ajiOMUoRJjWKpq9yxdXz?= =?us-ascii?Q?7vavrmh27g0jRHTyc7sjoWJ8dliEDKQgtJ6J+vwC8YCnOraG5RIQBKFpAlN+?= =?us-ascii?Q?R8JHXF4ZDGJD1GLe8GRx36uQ0Mi2wxaMUKiIb+rfPqUrB0Hjex9U4h1DQxIW?= =?us-ascii?Q?vstc5jMA5KDsEZ5hthg+03JvQblf/NEQxj2sKw7J6ffMCM0ViAeNUfZfELG7?= =?us-ascii?Q?aTS9V6dRyvgv0Tw1plEhFQjk+I8pUH9mQyzIIeoZg4bHH5SC9M7gpaynHZRk?= =?us-ascii?Q?e5zcheHWXuf0WUOt6h0POR7cLwvcnfDqX/UNQZD2OkOJnV6bkRqvBr7RZHEm?= =?us-ascii?Q?RWemPpEwf5XxIgM8LeHQKWeBne+K46HvVm7IGU+VJTZMUE70cn12iNZXIiqe?= =?us-ascii?Q?C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++hCN8SyqvgGaG+NeXQYuVQvTHtTs=;5:/z/taoVREr55b8AVrsGk8Buf3ETHTXhU7Q/bnje79BuSZX1t5++aFSOz0jtQ4kUrbB78HtLzoY41Gq1bBvuTrBvyE4ER9oBY8JaFfefpxUZze0Qcv2suWexWVTLnCIriqfzYgJXr4wtMY7mYmgNIW1gr9g+ZkFMu6nhhuxmIf3U=;24:qzzbBPMVQ1b3QGN+I66cXrirO1uas1lIVthO4tQ0HUPqyMKHopSlPFSftnyu9V1hC0KtxVhd2tVtnvRX1KmdJxYYLpxlh3rftMk+8HaflWo=;7:/0UqHlCxgLRuUuApioIOwvMC958Tbx37AW3H27eHvhUHY3jN9mkxL8ifcpxN5zZ/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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It was discovered during LTO-enabled compilation with gcc/ld.bfd. Signed-off-by: Yury Norov --- 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[] = { -- 2.11.0 From 1585362798526066728@xxx Wed Nov 29 01:43:03 +0000 2017 X-GM-THRID: 1585362798526066728 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread