Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197AbbHRIKY (ORCPT ); Tue, 18 Aug 2015 04:10:24 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:34580 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbbHRIKU (ORCPT ); Tue, 18 Aug 2015 04:10:20 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-b2-55d2e86a794c Subject: Re: [PATCH] dma-mapping: harmonize definition of DMA_ERROR_CODE To: Nicholas Mc Guire , Russell King References: <1433925694-12865-1-git-send-email-hofrat@osadl.org> Cc: Arnd Bergmann , Will Deacon , Catalin Marinas , Stefano Stabellini , Thierry Reding , linux-kernel@vger.kernel.org From: Marek Szyprowski Message-id: <55D2E868.2030609@samsung.com> Date: Tue, 18 Aug 2015 10:10:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-version: 1.0 In-reply-to: <1433925694-12865-1-git-send-email-hofrat@osadl.org> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGLMWRmVeSWpSXmKPExsVy+t/xq7pZLy6FGsy9xGrxd9Ixdov3y3oY LTo7O1gtLu+aw2Zx+zKvxc87Fxktbv/ms3j58QSLA4fHmnlrGD1amnvYPH7/msTosf2JiEdv 8zs2jxc9h1k8Pm+SC2CP4rJJSc3JLEst0rdL4MpYuXQRY8F5noqF//cwNzBu5epi5OSQEDCR +HvwAiOELSZx4d56NhBbSGApo8Tk93VdjFxA9nNGicUTb4MlhAU8JI7P+cXcxcjBISLgL/F5 XhJEvYPEiiVL2EFsZoH3jBKrNoWC2GwChhJdb7vAWnkFtCSmt85kAbFZBFQlep9uBIuLCsRI 9PzaAFUjKPFj8j2wGk4BR4nt798zQcw0k/jy8jArhC0vsXnNW+YJjAKzkLTMQlI2C0nZAkbm VYyiqaXJBcVJ6bmGesWJucWleel6yfm5mxghof9lB+PiY1aHGAU4GJV4eCvyLoUKsSaWFVfm HmKU4GBWEuHVTwUK8aYkVlalFuXHF5XmpBYfYpTmYFES5527632IkEB6YklqdmpqQWoRTJaJ g1OqgXGxznWz7bplq826D5369npH/hnD+Swma04dYTHtY2CuParFevbLwv5HZ5Z7iPS7q+p5 9nV/jG7SOiLQtvdNlIbPIV33Y/6Gyo/slFo7Vv69XbohcaXtStEf6WcO/173/pG/jliCuNe1 mZlWwj/Zfgml166N2mJcfiqnpnG1XeY9iTU6yx5OSFBiKc5INNRiLipOBAB23DoNeQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1812 Lines: 53 Hello, On 2015-06-10 10:41, Nicholas Mc Guire wrote: > All architectures except arm that define DMA_ERROR_CODE are casting it > to (dma_addr_t) - as it is always compared to dma_addr_t in arm as well > this could be harmonized. > > Signed-off-by: Nicholas Mc Guire Acked-by: Marek Szyprowski > --- > > This also fixes the build warning in > ./arch/arm/include/asm/dma-mapping.h: In function 'dma_mapping_error': > ./arch/arm/include/asm/dma-mapping.h:176:18: warning: comparison between > signed and unsigned integer expressions [-Wsign-compare] > > While it fixes this build warning it causes another build warning - so > from that perspective its not much of an improvement - never the less > having this harmonized with all other archs makes sense I think. > > Patch was compile tested with exynos_defconfig > > Patch is against 4.1-rc7 (localversion-next is -next-20150609) > > arch/arm/include/asm/dma-mapping.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h > index b52101d..68e41e8 100644 > --- a/arch/arm/include/asm/dma-mapping.h > +++ b/arch/arm/include/asm/dma-mapping.h > @@ -14,7 +14,7 @@ > #include > #include > > -#define DMA_ERROR_CODE (~0) > +#define DMA_ERROR_CODE (~(dma_addr_t)0x0) > extern struct dma_map_ops arm_dma_ops; > extern struct dma_map_ops arm_coherent_dma_ops; > Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/