From patchwork Thu Feb 25 22:04:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102675 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp394280lbc; Thu, 25 Feb 2016 14:05:53 -0800 (PST) X-Received: by 10.98.8.80 with SMTP id c77mr65611548pfd.42.1456437950257; Thu, 25 Feb 2016 14:05:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id un7si14919104pac.228.2016.02.25.14.05.50; Thu, 25 Feb 2016 14:05:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751910AbcBYWFm (ORCPT + 4 others); Thu, 25 Feb 2016 17:05:42 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:54349 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751904AbcBYWFk (ORCPT ); Thu, 25 Feb 2016 17:05:40 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0M9j7n-1adhPT0Oml-00Cz82; Thu, 25 Feb 2016 23:05:04 +0100 From: Arnd Bergmann To: Kukjin Kim , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: s3c24xx: avoid warning for inb/outb Date: Thu, 25 Feb 2016 23:04:50 +0100 Message-Id: <1456437900-853667-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:qxql1Kt1MKkN/f0y31zjgogrhnlPiwPyZQtE7HOAHUWAirKeYb9 AYg6ieGMCPPtDKK3Xicg47VuV/zeoXD6u1anBZ4iFw0EUq17MSv3VbUxv6jHoXLqbyEQHcg OJxZJ7LdBGRNaN7N+cUDtFkksJV/EMUHWrEm/DpWEtNGS3EaQo9gsHbE4EHL0rT5z2mbjop E7FRHDP9oZ1ASyF5mnBPQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:YdEwzwCzUGI=:XBcMVPYjnZ55JCjIszcBJ4 DLvAQ4x9AXuqavw6mDyYF9GpMlo8LpCrxZUUbDrxEN9kD4WUeBbdsu1Vpw3hr3WSfLRlCO7zi o1SFdSkRPyiB/0tPcdxFOX43mds2BE5KQAO6MTgDeLZNyAvd0bqi27wB5r/F2rietFIB1AyHG PnakdRPF+cEHXaerhHIO+oKkH0Q8e48F4xSOnMZcmTzvFhfZFVjfZ7ZIYrlZxnlKePbngegzD LFVwzQtSazAQ4Yi/UljYTjyntixV3DQRvNVJdVX3MyxoN+oMGreNvq8JyyOEh6Bw+nRTPUDr+ 9Kk5ldv4uY5GjR+Rz7EW3v4AXGekD5T3fYxNn9Z/bF7Qz3UkMoblGCxbTrmOAwrSIf8ufDyTd QMhUpMEwtBkGTDzwhfjSGExVWDKpthN1dv1HyrrG21B7zrQp3LNSsvUoMWynRHrkpoq+85jyD tMl8GUuLILNYifW2t/IhG4mgL01198qg2P34wnWvn13+zryPM/u7o53IIMF4l04zuM5j91T18 xOqWmlfv749zzauLvkU8guLJuA2bgBvjo6VlTra/LKn4l4GMEdbpshTnWpLczHSnZhsvtdivI p6wDQwOSPs6f+eN7XStMoy5FVKzxb9m6SGpWjI74q05b34qjokQxKMVY3ZWeF1mFxG272qp8o 7hdvRgum6d432QFmjRj5tDI82xJTuME2PQpSZiUELU9BuX291LJba+3PZWowQoY6EENo= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org s3c24xx implements its own inb/outb macros, but the implementation prints warnings when the port number argument is not a 32-bit scalar: drivers/scsi/pas16.c: In function 'NCR5380_pwrite': arch/arm/mach-s3c24xx/include/mach/io.h:193:68: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define __ioaddrc(port) ((__PORT_PCIO(port) ? PCIO_BASE + (port) : (void __iomem *)(port))) This slightly modifies the definition of the __ioaddrc macro to avoid the warning. Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c24xx/include/mach/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" 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/arch/arm/mach-s3c24xx/include/mach/io.h b/arch/arm/mach-s3c24xx/include/mach/io.h index 5dd1db4e2677..235c53647aa4 100644 --- a/arch/arm/mach-s3c24xx/include/mach/io.h +++ b/arch/arm/mach-s3c24xx/include/mach/io.h @@ -190,7 +190,7 @@ DECLARE_IO(int,l,"") result; \ }) -#define __ioaddrc(port) ((__PORT_PCIO(port) ? PCIO_BASE + (port) : (void __iomem *)(port))) +#define __ioaddrc(port) ((__PORT_PCIO(port) ? PCIO_BASE + (port) : (void __iomem *)0 + (port))) #define inb(p) (__builtin_constant_p((p)) ? __inbc(p) : __inb(p)) #define inw(p) (__builtin_constant_p((p)) ? __inwc(p) : __inw(p))