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: 8426951 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 17C299FC33 for ; Thu, 25 Feb 2016 22:05:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12E5D2038E for ; Thu, 25 Feb 2016 22:05:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D51C42038F for ; Thu, 25 Feb 2016 22:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751910AbcBYWFm (ORCPT ); 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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))