Re: [PATCH v4 0/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-05-04 Thread Arnd Bergmann
On Tue, May 4, 2021 at 9:40 AM Niklas Schnelle wrote: > On Mon, 2021-05-03 at 18:07 +0200, Arnd Bergmann wrote: > > - for the risc-v patch, I would suggest explaining that this fixes > > an existing runtime bug, not just a compiler error: > > | This is already broken, as accessing a fixed I/O

Re: [PATCH v4 0/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-05-04 Thread Niklas Schnelle
On Mon, 2021-05-03 at 18:07 +0200, Arnd Bergmann wrote: > On Fri, Apr 30, 2021 at 1:16 PM Niklas Schnelle > wrote: > > From: Niklas Schnelle > > > > This is version 4 of my attempt to get rid of a clang > > -Wnull-pointer-arithmetic warning for the use of PCI_IOBASE in > > asm-generic/io.h.

Re: [PATCH v4 0/3] asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE

2021-05-03 Thread Arnd Bergmann
On Fri, Apr 30, 2021 at 1:16 PM Niklas Schnelle wrote: > > From: Niklas Schnelle > > This is version 4 of my attempt to get rid of a clang > -Wnull-pointer-arithmetic warning for the use of PCI_IOBASE in > asm-generic/io.h. This was originally found on s390 but should apply to > all platforms