Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5031185pxb; Wed, 26 Jan 2022 03:22:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuMVYcSdvyEwTIfyfKrzWxRSlS8N9BABp42yU1V/qC9+UlsWy4n0iY46bmESvw7RNdT6ld X-Received: by 2002:a65:5c88:: with SMTP id a8mr18473604pgt.271.1643196171309; Wed, 26 Jan 2022 03:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643196171; cv=none; d=google.com; s=arc-20160816; b=Pvo77885iKmA4jwbMt3St2mUUrO9YLHKnXGc851GfIhJ1IXY7slJ00BQH8CS33MKlf DeL/jjgczQ0lBe2Ev8G2jxCjH1fgeS8lC+/Nw6AD23CfVQe1/I7H0MaSpMUImdVWPF/w JUfDZm0+VjMc1TmZ14YoYDRv/ke69Der7M/jHOfSdzSGr6q37a3QYNbSzakDEcBi2uhS wi6STpa3VUWZEPIfeMBntwNUGdiqKE3K1/n2p7PW+pnm5mYRaIBdSk3GIB/cmi0UIESz yU/oEECvYRJAax1flIcOfgwavGx54GIhX6GzERm20e+Pa+xuKZuVyyzzstwfMmQ0n0qm PD2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=+9xeGZW4KV4DtuKKrdA8CLFjJ3Dl6HL6926lotCsmZs=; b=E/q/dNhUOWpHaJMitbDXrs3wWw/7/LQIpE2BdBS0ERQb02bKfhzxi1kU2CN2kILNvR QoHxiublosl2meoIe18KfuGg3BkbXHPRLOWpGy5+GR0HXHvx9hX3NlOo6Xt0S+D7R7Xy 868vcftIx36Zzp00KfyMbp57meJQX0DigdvbTd9+CT1JLjUmF7BDKWbbG1wRFS9Xq6NL VqumET/1ox0Kenq5/FsOCxx2AoIrgYmwoTxpIx3NSXT1KXp5t2H33b5XVZTMVBAYqF8P +WgBckXVqGW4dep+py43X/mEzlCf0Pytv/EJ+aGrMcrbm7FTeGreTx74GRaUmpMPdOmN 42DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si17406287pln.220.2022.01.26.03.22.37; Wed, 26 Jan 2022 03:22:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233641AbiAYWRn convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 Jan 2022 17:17:43 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:46023 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233633AbiAYWRm (ORCPT ); Tue, 25 Jan 2022 17:17:42 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-64-8G7QQxJmMpexI7aZc5095w-1; Tue, 25 Jan 2022 22:17:40 +0000 X-MC-Unique: 8G7QQxJmMpexI7aZc5095w-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Tue, 25 Jan 2022 22:17:39 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Tue, 25 Jan 2022 22:17:39 +0000 From: David Laight To: 'Miles Chen' , Lakshmi Sowjanya D , Linus Walleij , Matthias Brugger , Kiran Kumar S CC: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" Subject: RE: [PATCH] pinctrl: fix a discarded-qualifiers build error Thread-Topic: [PATCH] pinctrl: fix a discarded-qualifiers build error Thread-Index: AQHYEhUH+MbwXf5NQkuzulFLQ312/qx0Tidg Date: Tue, 25 Jan 2022 22:17:38 +0000 Message-ID: <693a71e17b364afd987f2d2178b7e5cb@AcuMS.aculab.com> References: <20220125175457.23728-1-miles.chen@mediatek.com> In-Reply-To: <20220125175457.23728-1-miles.chen@mediatek.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miles Chen > Sent: 25 January 2022 17:55 > > Fix COMPILER=gcc ARCH=arm64 DEFCONFIG=allyesconfig build: > > log: > drivers/pinctrl/pinctrl-thunderbay.c:815:29: error: assignment discards > 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] > > Fixes: 12422af8194d ("pinctrl: Add Intel Thunder Bay pinctrl driver") > Signed-off-by: Miles Chen > --- > drivers/pinctrl/pinctrl-thunderbay.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/pinctrl-thunderbay.c b/drivers/pinctrl/pinctrl-thunderbay.c > index b5b47f4dd774..4e6d718c03fc 100644 > --- a/drivers/pinctrl/pinctrl-thunderbay.c > +++ b/drivers/pinctrl/pinctrl-thunderbay.c > @@ -812,7 +812,7 @@ static int thunderbay_add_functions(struct thunderbay_pinctrl *tpc, struct funct > } > } > > - grp = func->group_names; > + grp = (const char **)func->group_names; You should change the type of 'grp' not add a cast. The compiler can warn about casts removing 'const' as well. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)