Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1162741ima; Sun, 21 Oct 2018 06:12:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ViiUh5sMAZdX0UrfoUVOeKG0JdPaZOVDBc1CLkpHwKlA0FK2RqmmAo/SmNwpYIawSKuhV X-Received: by 2002:a62:670a:: with SMTP id b10-v6mr41699144pfc.243.1540127549210; Sun, 21 Oct 2018 06:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540127549; cv=none; d=google.com; s=arc-20160816; b=rAcnrehYQjIIJBZpoyxaNR/IqcEpsPWON3Qv/KaZRm/ZYjTB+dfJR1T4xsHJT6VCLd mGrVJiO237XqYclECGeffcYZN+aS7t99a16elbB3+ZRCh9jFqrhKYP8mxT5T+QFPTJxO cUTDzKxcJAzjm1yJ588XnivZ2dH+6hmK7PZweElBj2Ul1Y1fsK7iDU7vfFBbIo+EaCyI qnRmyIJ2tpJVgNwRMPf/ka6TpD79K9eXy98qmB4Tan132TWqpBsEWF0BEl1yEsmswyeU GIHMp6MxljCWCNMYYoWQPii5Fu1rmqrxBfDr9bdFyNkFOANeCIUKrtPM7w2sJny8tlcv 82/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=NwgN2b3Gvifm3s7WIcZaWR3KzAff4zjuSSujs7+qIw4=; b=Wv00c2XINrWgjhO86Ie2b+46BuhX9AM9kzCf5Ya8/pYfumsr2OR/O3H3tYbtKM4ah4 KCR4WXyeCGn3xPZ5eRTi3tD+zUXZ8kHITT5mF7gi/frMK3VwYGydCfM3t5eU5HO02hnj eYG8LsBagGqa11fr1ihwAeiMEMp1lIXxEjkzxADHys+uLzsAcMFYJOryOBa/l2ONL7Ey HAsOQsVI4ITwugOTNxz5evhUTRUIA5070NppRlxnMg5T/Z8rOzTeJk/uTPCi23/eCT4U v10TZwXHkY0gIkts9szDunTAfbPmqwX1Ll/geTc2rZjDx7w2rGYYJ97ZJ7H+YozBixiQ 5V8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=AK4PXOem; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si31335179pfj.137.2018.10.21.06.12.14; Sun, 21 Oct 2018 06:12:29 -0700 (PDT) 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=@nxp.com header.s=selector1 header.b=AK4PXOem; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbeJUVZm (ORCPT + 99 others); Sun, 21 Oct 2018 17:25:42 -0400 Received: from mail-he1eur01on0045.outbound.protection.outlook.com ([104.47.0.45]:64912 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727096AbeJUVZl (ORCPT ); Sun, 21 Oct 2018 17:25:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NwgN2b3Gvifm3s7WIcZaWR3KzAff4zjuSSujs7+qIw4=; b=AK4PXOemhg5nguitVVuPH+59NU1bBaimkHbwD3EIhMnf4UBCey4tO9s9Ahmbss618VbERgSnuzQUO9b7x11tDurXdYYCb6jqqaQVKEnpnsHaK1MAYQnQK93tST8i1O86hfDf9hXdQTFCvT211LLRLy3nh9L8RFskGW/TLHzG0sE= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4580.eurprd04.prod.outlook.com (52.135.149.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Sun, 21 Oct 2018 13:11:13 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1250.028; Sun, 21 Oct 2018 13:11:13 +0000 From: "A.s. Dong" To: "linux-clk@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Anson Huang , Jacky Bai , dl-linux-imx , "A.s. Dong" , Stephen Boyd Subject: [PATCH RESEND V4 7/9] clk: imx: make mux parent strings const Thread-Topic: [PATCH RESEND V4 7/9] clk: imx: make mux parent strings const Thread-Index: AQHUaT+K0fbQU4I7bkS6Hd/o8cdd7Q== Date: Sun, 21 Oct 2018 13:11:13 +0000 Message-ID: <1540127173-21346-8-git-send-email-aisheng.dong@nxp.com> References: <1540127173-21346-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1540127173-21346-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0034.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::22) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4580;6:E7llGSu9cyCtHf+SPxA4Ygb2zaWDBkQf0Ih2ywGAdpAadL/hYUExgijTZ9+xLT+8kKAJTPxVvz/4niGh7kALZAcmhPHSIHyblMC7peUwhTjHYryEIXtQvOeddON99K81+bAyICCQ6Gj/imE9yHlfhOtpiamFqLHBBv5hxlflgb6BhdBK5eMrPuzxuZx8LgacvJoFEM4nuZJxfZYN2kgxqv1JcK+VpDW+4KeunnceyraEvytKjk7nV+yTEwAI3X7HMpEgP4youdISHW8ZJBCybnWfII+GlTmu4bQF081dDmnbxr35txYhYHUsxcAiRKwBhDXiCAAZ15x/X8FZHbFSqlszCE5IQRPCfKturaSFCLjMoSuF3Y9zHapFGm7N8sHRQDixArGYNIUU/kBQncyqkiAg+Y9I8J2vzqwxEoAmsib03W/04UbZLjCC4AUfY9aZDKnscKWg8l3uI0AXuc90kQ==;5:/uf3bKRS/qPvIwUmeBe9CC2wSIZ7QuipvyPIoPHXnqM4C4ftdJhRqhNxKsRminGMVPmjQyYknS7HVy6RpqsUTJpUgDl16Q4hZAR6helIoieA/6AzEZoiJhDd1Lbz1agiUmhIj64zzcKIcHQsmkDkVquxFDUPuMZGlUyKf7lcKHE=;7:Gu36+cVAqmp04w/huFVbS9pRvP/cjYZ+dWMbw+H4hyQednr2o0z2ROsLVaGBJ4/KtxPFF+ZlMbSCbqya7tcvk+I4PKNPAV7UN4plFUy9+KA9JkK3tFl4Tys4DdXULRmGvCn0MNIfnCdocqYkRBZtXSR2prJW5bDu4Cyy2PkqzBKRWqUNGR9XDV6chCyL2aGD1r9Eg88gqA1Uf0A3SMQ1R2/gcOqyTtRtMoiCMAeU7cmB9Cr99ees9BP5xZ4/nBh+ x-ms-office365-filtering-correlation-id: 871e25eb-25e1-49af-8b30-08d63756ad36 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4580; x-ms-traffictypediagnostic: AM0PR04MB4580: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB4580;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4580; x-forefront-prvs: 083289FD26 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(346002)(39850400004)(136003)(54534003)(199004)(189003)(476003)(2616005)(11346002)(446003)(66066001)(54906003)(316002)(26005)(52116002)(99286004)(486006)(186003)(7736002)(386003)(6506007)(305945005)(102836004)(105586002)(76176011)(50226002)(86362001)(106356001)(256004)(14444005)(81156014)(81166006)(217873002)(8936002)(8676002)(6916009)(5250100002)(25786009)(2900100001)(2501003)(68736007)(71190400001)(2906002)(5660300001)(14454004)(3846002)(4326008)(6116002)(6512007)(53936002)(2351001)(6486002)(36756003)(71200400001)(478600001)(5640700003)(97736004)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4580;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /WRE+i99e5si+xbsKfY1MaKPTIA0XNhLW9hcEGfPydY7BT2f3mNZq6yDDvL4p9p0JO/jX3cRTd8Y7GMAgkSXl1NlphpxJIRTDX9ixoxRHjHOXZow3AJNNi15haUlWaQNV7SRVJH3dh8wFq5X1Blt/fawtWl0WWMnosNQobW+fBt4Yg55tNWNlRVn4FQcRQV9u3YMYXvjDftOTmIx4q4WEcThRmGU2Ugc1Ruo0a59PyB6y8JcIoXBNY/jHnlv5fjtrXVkmlhbJ1qH/ptWs6rch4gIjijYrqfbJ8IeoBIHoOW+IFnYo6fmaZTFiNu62eiNoDWRf4lwUpsIg2aQK41/QneDByhmd7YhumCUzR2ha/4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 871e25eb-25e1-49af-8b30-08d63756ad36 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2018 13:11:13.5689 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4580 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the commit 2893c379461a ("clk: make strings in parent name arrays const"), let's make the parent strings const, otherwise we may meet the following warning when compiling: drivers/clk/imx/clk-imx7ulp.c: In function 'imx7ulp_clocks_init': drivers/clk/imx/clk-imx7ulp.c:73:35: warning: passing argument 5 of 'imx_clk_mux_flags' discards 'const' qualifier from pointer target type clks[IMX7ULP_CLK_APLL_PRE_SEL] =3D imx_clk_mux_flags("apll_pre_sel", base= + 0x508, 0, 1, pll_pre_sels, ARRAY_SIZE(pll_pre_sels), CLK_SET_PARENT_GATE); ^ In file included from drivers/clk/imx/clk-imx7ulp.c:23:0: drivers/clk/imx/clk.h:200:27: note: expected 'const char **' but argument i= s of type 'const char * const*' ... Cc: Stephen Boyd Cc: Michael Turquette Cc: Shawn Guo Signed-off-by: Dong Aisheng --- ChangeLog: v1->v4: no changes --- drivers/clk/imx/clk-busy.c | 2 +- drivers/clk/imx/clk-fixup-mux.c | 2 +- drivers/clk/imx/clk.h | 18 +++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/clk/imx/clk-busy.c b/drivers/clk/imx/clk-busy.c index 9903652..e695622 100644 --- a/drivers/clk/imx/clk-busy.c +++ b/drivers/clk/imx/clk-busy.c @@ -154,7 +154,7 @@ static const struct clk_ops clk_busy_mux_ops =3D { =20 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift= , u8 width, void __iomem *busy_reg, u8 busy_shift, - const char **parent_names, int num_parents) + const char * const *parent_names, int num_parents) { struct clk_busy_mux *busy; struct clk *clk; diff --git a/drivers/clk/imx/clk-fixup-mux.c b/drivers/clk/imx/clk-fixup-mu= x.c index c9b327e..44817c1 100644 --- a/drivers/clk/imx/clk-fixup-mux.c +++ b/drivers/clk/imx/clk-fixup-mux.c @@ -70,7 +70,7 @@ static const struct clk_ops clk_fixup_mux_ops =3D { }; =20 struct clk *imx_clk_fixup_mux(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, + u8 shift, u8 width, const char * const *parents, int num_parents, void (*fixup)(u32 *val)) { struct clk_fixup_mux *fixup_mux; diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index bc43f68..7fca912 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -69,7 +69,7 @@ struct clk *imx_clk_busy_divider(const char *name, const = char *parent_name, =20 struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift= , u8 width, void __iomem *busy_reg, u8 busy_shift, - const char **parent_names, int num_parents); + const char * const *parent_names, int num_parents); =20 struct clk_hw *imx_clk_composite(const char *name, const char * const *parent_names, @@ -82,7 +82,7 @@ struct clk *imx_clk_fixup_divider(const char *name, const= char *parent, void (*fixup)(u32 *val)); =20 struct clk *imx_clk_fixup_mux(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, + u8 shift, u8 width, const char * const *parents, int num_parents, void (*fixup)(u32 *val)); =20 static inline struct clk *imx_clk_fixed(const char *name, int rate) @@ -91,7 +91,8 @@ static inline struct clk *imx_clk_fixed(const char *name,= int rate) } =20 static inline struct clk *imx_clk_mux_ldb(const char *name, void __iomem *= reg, - u8 shift, u8 width, const char **parents, int num_parents) + u8 shift, u8 width, const char * const *parents, + int num_parents) { return clk_register_mux(NULL, name, parents, num_parents, CLK_SET_RATE_NO_REPARENT | CLK_SET_RATE_PARENT, reg, @@ -204,7 +205,8 @@ static inline struct clk *imx_clk_gate4(const char *nam= e, const char *parent, } =20 static inline struct clk *imx_clk_mux(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, int num_parents) + u8 shift, u8 width, const char * const *parents, + int num_parents) { return clk_register_mux(NULL, name, parents, num_parents, CLK_SET_RATE_NO_REPARENT, reg, shift, @@ -212,7 +214,8 @@ static inline struct clk *imx_clk_mux(const char *name,= void __iomem *reg, } =20 static inline struct clk *imx_clk_mux2(const char *name, void __iomem *reg= , - u8 shift, u8 width, const char **parents, int num_parents) + u8 shift, u8 width, const char * const *parents, + int num_parents) { return clk_register_mux(NULL, name, parents, num_parents, CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE, @@ -220,8 +223,9 @@ static inline struct clk *imx_clk_mux2(const char *name= , void __iomem *reg, } =20 static inline struct clk *imx_clk_mux_flags(const char *name, - void __iomem *reg, u8 shift, u8 width, const char **parents, - int num_parents, unsigned long flags) + void __iomem *reg, u8 shift, u8 width, + const char * const *parents, int num_parents, + unsigned long flags) { return clk_register_mux(NULL, name, parents, num_parents, flags | CLK_SET_RATE_NO_REPARENT, reg, shift, width, 0, --=20 2.7.4