From patchwork Tue Oct 2 21:15:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 148027 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5644403lji; Tue, 2 Oct 2018 14:15:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CLrH43/5j1agULp8BIA4RbFQePH3+AsUngcbKLx5oCbnd6qRuWhwgehyNT2R71mFosNb9 X-Received: by 2002:aa7:8598:: with SMTP id w24-v6mr2062640pfn.77.1538514959418; Tue, 02 Oct 2018 14:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538514959; cv=none; d=google.com; s=arc-20160816; b=JbqQExHtQFgIdv2+Xshny82mdHLuh06QqhsBir5gO3t8xC7R0L0Qlh/8XpZBIXxqki wyD1ANeIJNMxTQjRCvrYwSoXPzidF/PD92NISB7LrfK32KhC/+JolzCFY+VNkBHgFl07 tSYNHawaeL6/bhBICwARLqDwbNokLRdwEaJotHLIPYVyoOOF6v2nuQ5F63mkNtD66Y45 IgmIXMZJh7L8VxROCvO376Jo5K5+VxNxKwj50gxPZxOApRR9Mo3zSJ+6sB0AKzboeyBG k1iEo+eiONEDVrBPoSQj2Oxmre66WXgVj2Prucz72K5eyVwUgWV7P0zE+27wEa2f02+n iFFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Xu6+g+xqpL8RhJvnJ6/v+KP6tSVta3Jh0HBOdsWvyag=; b=oKWMW/wX5k+U5ZsBkbUUoHPzM3rZiqkCc3ZNbjNumRi+i3ZY/pbQ/1ZSI/6fB9o2rG fD23bB0anmfSkpozbO8OcI1+0Z29ulaZ+DI5bedpIAK48JpAiC29UhlOY9vx83kme37i 3d2lXJy181ZiUSjXzm4QwrFxgDUDkfNxR/109nI4cskxYKjN2gzXDUGG/OrSyJM3pLnq SEI3wKIbtPUTU4Cwbn6hN/BSSf9jONp25qs60QIdikNq18qepl6H4IZ2zVUEPzknkxF8 WEU26D0IomcMF0qZoVq51A3InoMXfSnmu074O9eBmLJ4vY2XOxzEi5q+m/SFPvLn2THO h+Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si17850023pli.239.2018.10.02.14.15.59; Tue, 02 Oct 2018 14:15:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbeJCEBQ (ORCPT + 5 others); Wed, 3 Oct 2018 00:01:16 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:45651 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725198AbeJCEBQ (ORCPT ); Wed, 3 Oct 2018 00:01:16 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N2lzA-1fk7qi15n2-0132JH; Tue, 02 Oct 2018 23:15:56 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N2lzA-1fk7qi15n2-0132JH; Tue, 02 Oct 2018 23:15:56 +0200 From: Arnd Bergmann To: Bjorn Andersson , Linus Walleij Cc: Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom: fix 'const' pointer handling Date: Tue, 2 Oct 2018 23:15:44 +0200 Message-Id: <20181002211555.2779637-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:N1yk+wGgiUoOnCenGGs2KZwDO64dbHyATk86wvmaNJb8DLuNVmY MA65ouDKSevON/KJtCGI/G3wadpSDFZskAL/w0Ev9iSRw1ouNa7Kk88zafZlL9UliNFhGaa ykVdd+J7LmZx+NMWq1nP4VjO8J0e9k+IPxtObvubb/wcHS877RXw8OprJz+evpA9w4aRI77 X8Ug8ogw6RM+aWk8bqvkg== X-UI-Out-Filterresults: notjunk:1; V01:K0:eg8LwGmNVs0=:iANhTafTIqA0FhhIqqIWvh InNZCNgKYyBGyC4zGOrmzUnsFtAPgFrMlyR97f9ccKqopkdB2TLNxb/0TLKK1VNLCaKsmgNYX unWoprjhIFMhfeLsMQB7oLcDo+J3qCbkcmnZ/y2CHXgSIFIPVJ2zQ18fP/3dvOO5EJ3PyAanH AqjnQRnW3cqDbQRZSRVQhryCxA0G47D8eAci+APtrlO6WWTgteNJstuw4QwGCpvGAM8BK4hv5 yEVpISEJBj/eVgho7WrFGKgs+qEZGqFVmMTmNdm5EPeIU7Gwgqq/RH3TOFS4zyi48wIUSA6mL ISBZesiO8d9xdxCIYaVfYlom6xcJ5Qr1wmlWsSzl4MYs9E2WHikSwpfeb4cVjNFiSoWRg+2/x 698nbfTE2eKQZpfV7+DmnhfaoCAb6WC3krvJARbBvmH/uZ6op2qcFuFsoJdF44QmR2RSOn7Q2 KSIFgbtskzD2qU1boM/a06Q9lLIrF0sisbgO/ZpENr3nX/P9Vj2VRQ+QxfT/9vvElg+S50LUQ c0QvokVi/+aVVfjWXEaHH4zRT2z4omfZOvYsIWMhvh+ImhggSCCJ4WgXQkfUqHyhSqRfVlFxU d7sHzd6dh9JtjC3p/nh5IqwGRjwKbMKJZkVzuIn6Fzx+Ml0zFY+NQ6WJzuLTsnYZGQnErYiGa m6k2Vq7X7a6W24G6icQjZbothRQMenSI/I/dS+PRYtF0XK58ORFoiUe0nFRZpfoPQZt8= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The 'tiles' array is initialized to a constant pointers to constant strings, but the declaration is only half as constant: drivers/pinctrl/qcom/pinctrl-qcs404.c:1660:11: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] drivers/pinctrl/qcom/pinctrl-sdm660.c:1417:11: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] Let's make it more constant. Fixes: 22eb8301dbc1 ("pinctrl: qcom: Add qcs404 pinctrl driver") Fixes: a46d5e98190d ("pinctrl: qcom: Support dispersed tiles") Signed-off-by: Arnd Bergmann --- drivers/pinctrl/qcom/pinctrl-msm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 Reviewed-by: Bjorn Andersson diff --git a/drivers/pinctrl/qcom/pinctrl-msm.h b/drivers/pinctrl/qcom/pinctrl-msm.h index 0ad4bc55e2e1..29172fdf5882 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.h +++ b/drivers/pinctrl/qcom/pinctrl-msm.h @@ -119,7 +119,7 @@ struct msm_pinctrl_soc_data { unsigned ngroups; unsigned ngpios; bool pull_no_keeper; - const char **tiles; + const char *const *tiles; unsigned int ntiles; };