]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'asm-generic-pci-iobase' into asm-generic
authorArnd Bergmann <arnd@arndb.de>
Wed, 12 May 2021 15:30:55 +0000 (17:30 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 12 May 2021 15:30:55 +0000 (17:30 +0200)
commitac93d1da649366118eee843d743d2c3d4d5ad9a2
tree95ab64835696f08b024ab70028807717a3bd5636
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
parent5ae6eadfdaf431f47adbdf1754f3b5a5fd638de2
Merge branch 'asm-generic-pci-iobase' into asm-generic

A rework for PCI I/O space access from Niklas Schnelle:

  "This is version 5 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 leaving PCI_IOBASE undefined while making use of the inb()
   and friends helpers from asm-generic/io.h.

   This applies cleanly and was compile tested on top of v5.12 for the
   previously broken ARC, nds32, h8300 and risc-v architecture. It also
   applies cleanly on v5.13-rc1 for which I boot tested it on s390.

   I did boot test this only on x86_64 and s390x the former implements
   inb() itself while the latter would emit a WARN_ONCE() but no drivers
   use inb()."

* asm-generic-pci-iobase:
  asm-generic/io.h: warn in inb() and friends with undefined PCI_IOBASE
  risc-v: Use generic io.h helpers for nommu
  sparc: explicitly set PCI_IOBASE to 0

Link: https://lore.kernel.org/lkml/20210510145234.594814-1-schnelle@linux.ibm.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>