[GIT PULL 1/2] asm-generic: rework PCI I/O space access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5:

  Linux 5.13-rc1 (2021-05-09 14:17:44 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git
tags/asm-generic-pci-ioport-5.14

for you to fetch changes up to 5ae6eadfdaf431f47adbdf1754f3b5a5fd638de2:

  asm-generic/io.h: warn in inb() and friends with undefined
PCI_IOBASE (2021-05-10 17:37:55 +0200)

----------------------------------------------------------------
asm-generic: rework PCI I/O space access

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().

Link: https://lore.kernel.org/lkml/20210510145234.594814-1-schnelle@xxxxxxxxxxxxx/
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

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

 arch/riscv/include/asm/io.h |  5 +++--
 arch/sparc/include/asm/io.h |  8 ++++++++
 include/asm-generic/io.h    | 68
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 3 files changed, 75 insertions(+), 6 deletions(-)



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux