Re: [PATCH] [v3] dma-mapping: work around clang bug

2019-03-08 Thread Nick Desaulniers
On Fri, Mar 8, 2019 at 7:27 AM Christoph Hellwig wrote: > > NAK on this whole patch. Please fix the compiler instead of making > a complete mess of a common macro. Definitely on the TODO list; higher priority, but not highest right now. I'll see if I can get some help with it. -- Thanks,

Re: [PATCH] [v3] dma-mapping: work around clang bug

2019-03-08 Thread Christoph Hellwig
NAK on this whole patch. Please fix the compiler instead of making a complete mess of a common macro.

[PATCH] [v3] dma-mapping: work around clang bug

2019-03-07 Thread Arnd Bergmann
Clang has a rather annoying behavior of checking for integer arithmetic problems in code paths that are discarded by gcc before that perfoms the same checks. For DMA_BIT_MASK(64), this leads to a warning despite the result of the macro being completely sensible: arch/arm/plat-iop/adma.c:146:24: