Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4773097pxb; Tue, 25 Jan 2022 19:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY0dsDwb4cMuwMfmxq+O0tIZUtK2tKGz7prkWr9siRefdERLKytT6uA62zk1zOat9ifUur X-Received: by 2002:a17:90b:164e:: with SMTP id il14mr6585214pjb.90.1643166694424; Tue, 25 Jan 2022 19:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643166694; cv=none; d=google.com; s=arc-20160816; b=GRs3/3dhteDIM8yWpCm887awCi6Xbm8Djoj465m42myHxu8uWvXZ6ECsjEU/WAuAmX 8FR2D20Ole0PurTuuEkTprEiY9YpIgJZajukxchnRYiYm+GD7gWVZarhoSYQ7fULD0Ok PqPkHTo8ChttnHX6twgE1JnKphh6LC9Otu58gAWLIoCFJSXbIsG2/fs3v3loflcdtrTW phtHKaywEOZNJazeL32kjc0aZc8pgPNUoLhGF+yAWayOTbdeLGGVSVgqZ0DjVHRpLTDR rF4jGun5tWtKX0lp9kuZkdDDVwYUilcVzE62sxJ1RkQYLBJyku2R/NI4B1nsc4ux9aEN AMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=d1gU1KT/cRXjT5ngqEQscHEDUWgDefro+pKzJWr7ipY=; b=AlAnW41SMnCbHGmu0rNeUSn0NKe6LZ/8JB15FlYF9Qk/T/lqjTKCMjTwV3cQR/DnvK Sn5fnX6leCnFEQwe9l51BHp4WftJGbABzCJP0H6g2Ll+UcQ0VfSsNbIrTbNZuIITJaBG tZ7LyblG+e2r55WTyOcxivOdZT7x/synF01dvxCJy9175vy5IMHnAZYiSiT59Shj2XCU weSIiibEmPlKtySFCO2srf+ibX2BpeT8+AFXdqDcugV9UrpDdS6Cnl4WWxgQXXk6sFeP JyfeAEOqIzDM/srmVQTfHW0cUGP73DcAHZVDVeOm2vhdDNbMwaFa79f/P3Bc5HWiFrF4 wDGA== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t189si10509407pgd.166.2022.01.25.19.11.22; Tue, 25 Jan 2022 19:11:34 -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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386707AbiAYR5X (ORCPT + 99 others); Tue, 25 Jan 2022 12:57:23 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:44874 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1357574AbiAYRzE (ORCPT ); Tue, 25 Jan 2022 12:55:04 -0500 X-UUID: 780410943c914273a37e948af8ad6595-20220126 X-UUID: 780410943c914273a37e948af8ad6595-20220126 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 823797339; Wed, 26 Jan 2022 01:54:59 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 26 Jan 2022 01:54:58 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 26 Jan 2022 01:54:58 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Jan 2022 01:54:58 +0800 From: Miles Chen To: Lakshmi Sowjanya D , Linus Walleij , Matthias Brugger , "Kiran Kumar S" CC: Miles Chen , , , , Subject: [PATCH] pinctrl: fix a discarded-qualifiers build error Date: Wed, 26 Jan 2022 01:54:55 +0800 Message-ID: <20220125175457.23728-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; while (*grp) grp++; -- 2.18.0