From patchwork Tue Feb 20 15:15:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10230279 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 2CFAD602A7 for ; Tue, 20 Feb 2018 15:15:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E081286D7 for ; Tue, 20 Feb 2018 15:15:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 124B1286E5; Tue, 20 Feb 2018 15:15:40 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 941FB286D7 for ; Tue, 20 Feb 2018 15:15:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752691AbeBTPPi (ORCPT ); Tue, 20 Feb 2018 10:15:38 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:56369 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752424AbeBTPPh (ORCPT ); Tue, 20 Feb 2018 10:15:37 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0MRvbR-1fCeYH1GTh-00SuBJ; Tue, 20 Feb 2018 16:15:32 +0100 From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Arnd Bergmann Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: hisilicon: mark wdt_mux_p[] as const Date: Tue, 20 Feb 2018 16:15:21 +0100 Message-Id: <20180220151531.3379003-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:0OKz5pr4AZuFohW481tTI8rpzjJGNWFVLYz6MhDGdbIwQlgiRSo ClBSdwj87qjrbj5COChIaerFhyqzYKbX+cQFGOPkrJyWyoSAXpPQJQsjm6/DgJsvLFx2bsV hc6Djc6NVrc2agXcywmaEJSzTc7Je391qS5+ju2P3jJ6Rcay49U3jmZT3M9q9BgqdfArCkl BZzOeG1xKc8qwCCYv9Mhw== X-UI-Out-Filterresults: notjunk:1; V01:K0:x6o5CmB0KmI=:oc9KxIKfYmKyRbGuRWxSUa UgQBWOx4rHqwH7LZ5AnVZhFtp+6jeNn/NJmBrhHoV1QFef/uPFwwyxB/mcncb5oVZtus7YqkX Pkzd891Gv2bKKDTy3Ch2Mj7eFwZ0uxHRTa9LRBc3CkSKCrOSrShKjDDXySNFz5cNy0pPCUa27 RYAFekhij66Yd1Mrlp6CzJfQIJmiGx0V8aXNKSWA1UQZ/+dDC9STbbfs3ugtO1nTBBBzTY2pD kFBlfKjmzNvJYKhr9QQOqXjpr/2ZEcylbXydtv/HJ72V1VSPH4Cw2x14el2NkmjGY5ablgOqB FNcCAbSoDKS585PneYcOGs1dzfmlLb9xT121G1joe7FEFupzbVBU++G+ZnUutuATTsXGEh4/r VoPw1eXocPLp1xr6yMVcTYyJxSEEpLa+xaqZY+TEot+ZTRpTaZ7S4yrCoUEO9jmI6o5yWsuuS K68Cj3F0drR2ZJ8RSiQmf7gPa+plqA9afPrDkzWnkZHQFtpIvqFnJREipBeMqzQLvq8LGFsdz vDMggVDfCXhjaQT55WGMEXVYi7rnmxvz/zSJX9fbNBzjLbRkG0NsThXDKgT83pc3VaIfCXQQf /uRKWeBVw6pATlZRgQWc6b6fyFxLkBktJJgjS2dzCNy8E00sMalPBj/PbzLeUADNhTB7AbSWt GYsu9lEOYT5pnhcjThPfR9LEWwDM+VVNnKW1OD50uA7ObKa2eBfNB71bxc5HrTf0P2oPHca4H TY8YjDZhGMUsM2qBtDNBfr+M75+3PRE+Yol/EQ== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The symbol is in the __initconst section but not marked init, which caused a warning when building with LTO. This makes it 'const' as was obviously intended. Signed-off-by: Arnd Bergmann --- drivers/clk/hisilicon/crg-hi3516cv300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = {