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: 109801 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp2277224obb; Thu, 10 Aug 2017 05:13:59 -0700 (PDT) X-Received: by 10.84.238.136 with SMTP id v8mr13094325plk.177.1502367239198; Thu, 10 Aug 2017 05:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502367239; cv=none; d=google.com; s=arc-20160816; b=Qy+5qR2uaoJe3dpCyj8sJTadnt2bQMpV19Ot5UEIA4E72bQm+a2K+Sf27TlbJyzkTc LKCVBozVYJNmZrR486PtO13Qh1dPQm1uHpkgaR5v8iSLWis9g+AcJdnmcBQdwBFE3PtV uQKkYqWEjqS+qtYkEe72KTwRvQZb1j/an3qym9oukeB86DEto2DMNs8L6y9bM6ue6KwF 7NOTMT3IMWh/t8mgZs+iZxfD+7GjMsvydKhiMpzT8P+qPInxAfRNKQGDVQwzRgqBNDeg kKbvt+Y22S8KEcJA/PF0on7djMYYMMzr5yop/ayNnHZDWJ/eLRvp4OkfkNEZ1pisI6Po M/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DaoQkJG5mngqTv3Lctb7DEKCWrdb0JuJ6BiAVY23brk=; b=dSuKZhsO3WF/j4STHNq0zPtntic4UYIsvk0Y8bv6BIV7u1r3XigN7q07LoWQra8bxt fsoCHArcMN+JKUjtonF6SHsUtsSSe8AnFwzYEVL7oUHQB/sYsOdcjTWADYy3m4XCjzrW ILrF9yKzVU7xoXqNEk4+MmD9XnJ4nqQ8rU2hYwv3rXBsEoj/04dRLGXBvt3qreQTHICt wpM748lGjZhj9QTiPPYFBIzAUxd5PIsLECgpU4LETSAsZQDQcK16EU0HIhibzhhy94GV vLDaQfHY/CW9BTVRSy5wQFBOhfqJkpYP1LkLoEQ28eH0xOnJC8rvNGdByUogBAG4N3q/ Sq6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 c1si4496289pld.302.2017.08.10.05.13.59 for ; Thu, 10 Aug 2017 05:13:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org 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 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(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;