From patchwork Thu Aug 10 12:13:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9893445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 90DB860236 for ; Thu, 10 Aug 2017 12:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82940288C2 for ; Thu, 10 Aug 2017 12:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7767728922; Thu, 10 Aug 2017 12:13:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2032F288C2 for ; Thu, 10 Aug 2017 12:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752653AbdHJMN6 (ORCPT ); Thu, 10 Aug 2017 08:13:58 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:59514 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbdHJMNy (ORCPT ); Thu, 10 Aug 2017 08:13:54 -0400 Received: from wuerfel.lan ([95.208.155.18]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MaKMq-1dv6Gn1XWC-00JuF8; Thu, 10 Aug 2017 14:13:45 +0200 From: Arnd Bergmann To: Andy Gross , David Brown , Mark Brown Cc: Arnd Bergmann , Varadarajan Narayanan , Matthew McClintock , Sudeep Holla , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] spi: qup: fix 64-bit build warning Date: Thu, 10 Aug 2017 14:13:27 +0200 Message-Id: <20170810121335.2581513-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170810121335.2581513-1-arnd@arndb.de> References: <20170810121335.2581513-1-arnd@arndb.de> X-Provags-ID: V03:K0:cdb+D4vRxbIUMWN8rPuFOQrvuIg/6VvfIgW8bltVWPjH6S+kKr9 sJUWHyznwPiwiKX++/RZYOGjsjsU+NoNQf/AJB5se+7VMGZ3pUdddRCxZY1H3Tf8CgNyVdM DkIu0Ys+fcEG/xHxrjVV425YwNOpwqBtQxLXGcSsR64KbyqB7HvGnO7csm5QWNM2GCrdygI yEHyYmHs8Bl4N1NKUH+hQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:R1/IbimwduE=:MS/Zlc5Mas2x+numvR4Zb2 6gobuaPVIcK902dSIyOecQA7SKIVP1ntd/0MgwuezoYZ3KMsCqdsxhy0AuFWanN4uWxm41V5w YgqeUznhKyAewpxRetkVu+cTY5VzBbHnUeM3Av0yLYeSUq9WBIgO1MQqd4ohBzTIfmyYIxDOV AWiPmKGHnWAcZbYNDm3mYHoLv2nYQnFUsN+nQMAJtq+dAEkstiPVywQjlBmGx9NvmM3VIeM+v GAp2u7ZeBObyethEcQRp3s5fSSiBNK8KtZJFj2fJKI1pw46ARdSJ/CsQ/3CV2RIxMosdRt9xE JWCa/LIZ5GpKV/tlC0kwGUhsnJpKumd5JKuil829uv/KxBHC341ZQh3HxOuR9caSvniFh1RI6 TtF21o0UMziDD4XdlM7+N4cAzIrJ5ygOLFhOD+4ids1efANmT6W4osKmfdbZ49pcrYACjeooI ONhccafZvjky/oe3Fx4YOs87/P8CHQ3H1MXRcNm6nhL8Kv/+6Hsmse9c9SJ8/DGuFfPitYR8B aQOrbvxxwEkxVJ3BsJ/6tKlAfKqxvDKrx+9vAeo8qMIWsqR0asrfJnYJNEGtbJUmrbF0HCim9 Q6deBranbTpRKSLLoIg/xYfC6WZpm/HRuTB27Ni7KyxwB9ROIymSUqFt1IL2nfYcDB42fzCHq kTzJ/2HY9hhd3YgurItpBRedhc96JmNesEFSXAmfW7g9D5UJmuLLPBMAbU8RrWnVYB+PMIiBw GMPBEGeYjae+HwnN9g8r1Dm2Bl6OYqXwtTqXig== Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 64-bit systems, pointers are wider than 'int' variables, so we get a warning about a cast between them: drivers/spi/spi-qup.c:1060:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] This changes the code to use the correct uintptr_t cast. Fixes: 4d023737b2ef ("spi: qup: Fix QUP version identify method") Signed-off-by: Arnd Bergmann --- drivers/spi/spi-qup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index e9ecd67cd817..974a8ce58b68 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -1057,7 +1057,7 @@ static int spi_qup_probe(struct platform_device *pdev) else if (!ret) master->can_dma = spi_qup_can_dma; - controller->qup_v1 = (int)of_device_get_match_data(dev); + controller->qup_v1 = (uintptr_t)of_device_get_match_data(dev); if (!controller->qup_v1) master->set_cs = spi_qup_set_cs;