From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: Re: [PATCH] ARM: s3c24xx: avoid warning for inb/outb Date: Fri, 26 Feb 2016 08:46:55 +0900 Message-ID: <56CF926F.5040507@samsung.com> References: <1456437900-853667-1-git-send-email-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout4.w1.samsung.com ([210.118.77.14]:25632 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbcBYXrD (ORCPT ); Thu, 25 Feb 2016 18:47:03 -0500 In-reply-to: <1456437900-853667-1-git-send-email-arnd@arndb.de> Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Arnd Bergmann , Kukjin Kim Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org On 26.02.2016 07:04, Arnd Bergmann wrote: > 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(-) > Thanks, applied. Krzysztof From mboxrd@z Thu Jan 1 00:00:00 1970 From: k.kozlowski@samsung.com (Krzysztof Kozlowski) Date: Fri, 26 Feb 2016 08:46:55 +0900 Subject: [PATCH] ARM: s3c24xx: avoid warning for inb/outb In-Reply-To: <1456437900-853667-1-git-send-email-arnd@arndb.de> References: <1456437900-853667-1-git-send-email-arnd@arndb.de> Message-ID: <56CF926F.5040507@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 26.02.2016 07:04, Arnd Bergmann wrote: > 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(-) > Thanks, applied. Krzysztof