Message ID | 20171129140303.14283-1-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 4E51560353 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 14:04:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4918C298B8 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 14:04:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DB09298B3; Wed, 29 Nov 2017 14:04:05 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB 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 A4FCC298B8 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 14:04:04 +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=OBco9dtBH4G4Wcgb35pVuWVmDSdm8Rc82ZuvO0nNHE8=; b=UI7+1UhFPmqROJ 17B/9FNNhtTDOJ7Ft3QyESG8dPtA/Mz5XWWdqae+ABjA4WAe9AJ5TAkcmq83/NjfnWsbyOVgOkHV+ QmdB/V3fbhiNRQBIKGIxdgojUXov2dGV0v61MZzQPugu/Xu7HMgkKG0OL8OtTjI79W4S5khTu9alJ oyCPaFTLYb/dEN9JMqM73sfcnnOScxWoSCGJfMuV8WV7QwNafQU0bclimOqt+pUKXZ5GosgOPk5Cj sLKzUlAvumq/9hjiMmQ20h4gnCUyGl6Wbf/UlIOD10Tjx6Kl1wk27J4Yqc9Nb32n1DcEbp7zeWE7t AIrUu/4HyngGuKJZT16w==; 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 1eK2y4-0003Rd-1h; Wed, 29 Nov 2017 14:04:04 +0000 Received: from mail-bl2nam02on0047.outbound.protection.outlook.com ([104.47.38.47] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eK2xi-0003BY-4V for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 14:03:48 +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=xiXYHM37+vXyt9rcOx7v6xA8kmMeEmZiqSUa32cDwW8=; b=biviX0IcsOYHxlPZOYcLUp16eO4rCdwYVn0ker1/jRlrwhPKoliCXtS6m/bJcnVMci4oLCnNIB+sRZDGwyAja1EkbR9QzROYK96BwyKIttHwibXQk8LlMnJs44etDdPN151LDH+T5eqkvYGJKQirEnQvzDv8nFXjho/GI5HelW8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (111.93.218.67) by SN4PR0701MB3839.namprd07.prod.outlook.com (2603:10b6:803:4f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 14:03:18 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: Will Deacon <will.deacon@arm.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: fix missing 'const' qualifiers Date: Wed, 29 Nov 2017 17:03:03 +0300 Message-Id: <20171129140303.14283-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: HE1PR0102CA0011.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::24) To SN4PR0701MB3839.namprd07.prod.outlook.com (2603:10b6:803:4f::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 661a5fc8-31ea-4424-e879-08d53731f1a9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199); SRVR:SN4PR0701MB3839; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3839; 3:oCaMMC2G81sVPQuFaMGy6DEglNSXcUtb7FxPQwK2IgWiqJHq5BiEIS9g1pcfyFmstelddEoEjFh7kWAIS7i1Uv5kFcWXQ9AkKnUHK226a4wVsbzX2VsqZvN54y+TCsmpqNPcujjoBVNJpWNPfIXRehCbNgtdE+3j2BxshZbpX0JShB7W1HTAIsT++HtnAqA8UPOBxn9AR5bF7DVMmYYeLrNY8hq+8Nx3JC9a0lJ0/XF6iVZDrYjnOgquFyui80Ym; 25:bopVDm+/iNcquXotVlmUPCvTMbejOdUTJ2DVb6iAGYQ/8eImQD0tF+yrDGw30/gTygJONfKlpuQxV7nsJOBpUx9bQDJkbgAzMtQo6F+oN6Wa4CDTRahDQKXGv/B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n5ukA3bkXuOyXr31mistFjdUqElBhdn7AX8suB0ZBRkVoj4tQwITg03FL5rK3odqti0HWWOaOzo= X-Microsoft-Antispam-PRVS: <SN4PR0701MB38398DA325533C87533792E0E33B0@SN4PR0701MB3839.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3231022)(920507027)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011); SRVR:SN4PR0701MB3839; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN4PR0701MB3839; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3839; 4:tISAJbdoUGjdmDusXwHQmLXkCs6tJUcsP83dyL5j6czasiqHpbdGseiorAwfzkvh0GLS+/zgi/+OCzj5dy6a9OqID3JHWBT2WeQrtj6XiepqK3WVATL7ORSze/disunzLJv7tc6oGmy0H5PCus9uow4IvOxP0wxflOv1iqqZrb7+he2NOBbT12idVUlLLIIEfrAtfW40DPVZ3LNCtGqk1xiYHSq7rWhn8+GPh3bweshc0fheHKbaTPfKqfyxj4Epyk3P6tnm2rwQSjgTkKuuSnTA80LwQU3BJs9ya9d2Jl2U3ciRpas8WsdD3f8W3V7VrBNWohLR1s9KsVlpnh69AHHLQCEceh/YRzaMdu3H43A= X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(366004)(346002)(376002)(199003)(189002)(5009440100003)(7416002)(8936002)(68736007)(478600001)(2870700001)(2906002)(50226002)(189998001)(39060400002)(53936002)(42882006)(6666003)(50986999)(101416001)(72206003)(4326008)(5660300001)(66066001)(47776003)(50466002)(106356001)(6486002)(36756003)(33646002)(105586002)(76506005)(316002)(54906003)(6496006)(34040400001)(16526018)(25786009)(23676004)(52116002)(97736004)(3846002)(6116002)(81156014)(8676002)(81166006)(305945005)(7736002)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN4PR0701MB3839; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjRQUjA3MDFNQjM4Mzk7MjM6VEtwU3V0UWNZV0lxbnRqbVl0d1pwU1dp?= =?utf-8?B?a0R3OTI4V0Vrcmgyc3pPc1N0MjF2L05LaEpFbG4vOTB1OVJuMzdobkExN1N1?= =?utf-8?B?ZUhPd25oVHZTSEpoVlQ1SW9RQ1E0SU9MakQ5dDREZmxRUmkwU0tEYm1uOWFX?= =?utf-8?B?QXMxTkhWcCtWdU10YW02bmgzRU82dUQrbXV2UFoyR0RuUzQ2REhrYU1mRHRD?= =?utf-8?B?NlFIR3VGc1lseFRmNXdselRMaUgvUjBhQ0pFMXVIQlVPeTAwODBCSWo3SUtX?= =?utf-8?B?TXVRdDdoTjhyOSs1b3J0MVNDUURHbDgyUnByZ2ZlcEFpREZ5MHFRdXBnUUNU?= =?utf-8?B?ajVlbHJrbjBRdHRCNVVsL2JtWVFVOFRqakNpTFhWQzZCaHkzblVtaHZETHNv?= =?utf-8?B?VCsxeENURE5SQmNRcy9wZVl1Q2dpVzBWcEdRLy9XTitYWU1hcU9uQUwrb0NT?= =?utf-8?B?WWpXa0VHRFFZRFAwd0w5M2ZRYkRzSk5JUnpHY1AzTnJrVTE0Rlpia1Qra0Jj?= =?utf-8?B?Y2RFK3ZScUlOZnN2aXVIbzF1MCtjRisrM1lvU25ZbmpjdjVDdU1xLyttckVY?= =?utf-8?B?aGdsVjhZakpBdlBJR2w5QUd5cDI2SEcyNVg0cTVsV0pqQmszNjROanR1bmxC?= =?utf-8?B?ajcrVlQzU0p4ZVdGUGFwditSS25UNHpnQ1llQnJqWkpTRXRTK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xaXJxZ3JFaldHSE9SRVJCYzdadXJXK2ZZQVBB?= =?utf-8?Q?XSj5YYmus34prJ5ZxpjTlI?= X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3839; 6:qA2ekLtBNIJHsSxJYy1LTaCPGsb4r2sQjHzTncqJSRWEP4dulIbvW6odrWeVEkQmegyTIXD67Ej+lAYAbDIdYvPeCfyi2LXmQ7D88fqhGrcHr0YyxXy8BD3dhjndUkRzRSsWN9eppm1y/txW8ueuMUcxxh8lFf8ocnI2bg68K1N3Xyrw40PRiwb10k3NnA59xnz7dt6fccsxy75oG85OmKWG9bjoXT1PS0wiCnkU1xoH2ieoc1tUUcWzvW1NvBAR8VujNarZKLrZzJx2yYpdWlT+SGUcT42A9rsSUmzS335teZn10UnmJSXfgjooOQlLBX1CtGcA9yhaN+OMktB/iBWZtBVj0R7w6g1Rgz1rz5I=; 5:dvuG6FjPJhIxTx/itjh+CbMuV2f+Vff68KSGWOlh6noaqm8VyRKaeoQFOAN7keiRZb6hc2wh0a6Zbonbr3y/TAOSaDKa4i+Nck5Nl0cHwoIXMt+7E2hyEyur5ofO9AD6pn/C599UZOohTmZCeOIxOble4yXJuYWGA9TvAin0hME=; 24:xht/r1HlweCdUOtwrZKZzAemcjB64De1q2kG3smkKX8JUbJKXEdkD/qp/m3/3FWjlwCII6AwWOj3pTGl5PlI4+7OSfJk5qY7zew0fWcKOQg=; 7:iRwLKzxB8csfiCAARviOEZlOBiBlsntxhl7C2CF/uXyF6UQ0EpMt3Z3S1SeTepwj8t6R6ah5/A7kRGaOT4zXc6wOAkdZJCavyFOKxlMV5chd+RbocKgz7cyYNOf+Uz1GFum3YNHtGScOV+mZwGdbSfw4psrblRNWoCipvQ4NPl5JCUwWJZn3qostgYPbkhCbeUo5s5v9ab0Hi+0uMU/mWww/2UUyia31HFIdRdwYCrDl58aj5asL+QAuoa7n91dY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 14:03:18.2662 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 661a5fc8-31ea-4424-e879-08d53731f1a9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0701MB3839 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_060342_395068_8BF4D7EC X-CRM114-Status: UNSURE ( 9.82 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Andi Kleen <ak@linux.intel.com>, Kees Cook <keescook@chromium.org>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Peter Zijlstra <peterz@infradead.org>, Catalin Marinas <catalin.marinas@arm.com>, Nick Desaulniers <ndesaulniers@google.com>, Yury Norov <ynorov@caviumnetworks.com>, Alexander Potapenko <glider@google.com>, Sami Tolvanen <samitolvanen@google.com>, Alex Matveev <alxmtvv@gmail.com>, Stephen Boyd <sboyd@codeaurora.org>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/cpu_ops.c b/arch/arm64/kernel/cpu_ops.c index d16978213c5b..ea001241bdd4 100644 --- a/arch/arm64/kernel/cpu_ops.c +++ b/arch/arm64/kernel/cpu_ops.c @@ -31,13 +31,13 @@ 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 +47,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[] = {