Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753262AbbKPQmB (ORCPT ); Mon, 16 Nov 2015 11:42:01 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:62468 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbbKPQl5 (ORCPT ); Mon, 16 Nov 2015 11:41:57 -0500 From: Arnd Bergmann To: Linus Walleij Cc: Bjorn Andersson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Srinivas Kandagatla , Kumar Gala , Andy Gross , David Brown , linux-arm-msm@vger.kernel.org Subject: [PATCH] pinctrl: fix qcom ssbi drivers for 64-bit compilation Date: Mon, 16 Nov 2015 17:41:18 +0100 Message-ID: <5235862.Gokjxf5QH1@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:e+LnaOOhpuqq6Th+FWR2/sPXCrcgkacLWPcsdMCEit/B596hdeW JwotPc613iSJi49WXHgWRZA1RCFpkJd6c5uVcQGk7vSQCU6sTGrqmYXDQVVtanTGpuA4XVE w2EAN9aJ39JPxdSpRJvuqxn76ahjT/TNbheixTEP4wUtgWukZs0F2GskEMmFWmyPnT/Yls0 q2H2TmNIu29uSPQFIgyKg== X-UI-Out-Filterresults: notjunk:1;V01:K0:guWzPOgajQM=:4qbbETZBl+63ozVhQzWHL3 XhB2A+tOpN4yAQ+2ulHpeLml7jaWFel70zZjuRSrbgRBj+w65AcByiZXrvCVSlBlE0iBINjD8 EYxLa+Jg/i2VgZ23IdGbx0BZT8KMfBrsZ8f+wcTjdTAEXhbrZZH4L+TUtAYPgGcPLc8S8EWYT z86mylxodvIVdsW9ZgHq8aVH4hMMOS+70irfJOAcSuViYNVfJ617+jNb7zpMTwk3aJRzu3ZML JLs6+pOJ65NOXjIcowBkZQUJXo1R6TrG3yr/jwzgmNPw9t+OZ9B+xln8pHkpUWWp4T+UctLQ7 d7L4imXRraizdd4wnXzmquy+GDr3I9MxniFQKxWSS71gdHUziP9G1PHS2+Ns0uyatp/daGA7z 7aeWr9v/mz/e6sBkIlOdtWY+PJ3Xf8V51kgaysRj710VSzJUHgmxVIbND/ZMCxWf/rUuvmX1M ckPH5yGN21W5xH8Mr7evsxxACrTD1gA7yh7/9+jlvqonRuuBJc0gJg0iGnwmV+HJsviABh61A PFqiFsjumSUtCTVIhIvyUx9t0Z+e7M1ALFvBzppESDqSmMO4nsvuHAhGHJVpsJhbUD2BpI28e oJmuxIISn02qCYJGqfGSrzTmICjzR6Ty1oZ3xhyzLGdPos5vh0TrEUwUGnZNvY1FNcsgBlNRS 5z/8XaoySOQuqVJ9OeKZswSk3XvtVyjkgcCAMoGpSWLY1YmPEyjoDTYRsSGuMGmJmMVtcok3t MleEu+c0a3ul3C55 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2061 Lines: 45 When building pinctrl-ssbi-gpio and pinctrl-ssbi-mpp for ARM64, we get a compile warning about invalid types: drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c: In function 'pm8xxx_gpio_probe': drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c: In function 'pm8xxx_mpp_probe': drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the code so we cast the pointer to 'unsigned long', which is the right thing to do here. Signed-off-by: Arnd Bergmann diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c index d809c9eaa323..19a3c3bc2f1f 100644 --- a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c @@ -672,7 +672,7 @@ static int pm8xxx_gpio_probe(struct platform_device *pdev) return -ENOMEM; pctrl->dev = &pdev->dev; - pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev); + pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev); pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL); if (!pctrl->regmap) { diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c index 8982027de8e8..b868ef1766a0 100644 --- a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c +++ b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c @@ -763,7 +763,7 @@ static int pm8xxx_mpp_probe(struct platform_device *pdev) return -ENOMEM; pctrl->dev = &pdev->dev; - pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev); + pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev); pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL); if (!pctrl->regmap) { -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/