diff mbox series

[v3,2/3] ARC: io.h: Include asm/bug.h

Message ID 20210421111759.2059976-3-schnelle@linux.ibm.com
State New
Headers show
Series asm-generic/io.h: Silence -Wnull-pointer-arithmetic warning on PCI_IOBASE | expand

Commit Message

Niklas Schnelle April 21, 2021, 11:17 a.m. UTC
From: Niklas Schnelle <niklas@komani.de>

In a future change asm-generic/io.h will make inb() and friends
WARN_ONCE() on systems without I/O port support. This requires
WARN_ONCE() from asm/bug.h to be included so include it in the
arch specific io.h as done by other architectures.

Signed-off-by: Niklas Schnelle <niklas@komani.de>
---
 arch/arc/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
index 8f777d6441a5..62ce2e486e29 100644
--- a/arch/arc/include/asm/io.h
+++ b/arch/arc/include/asm/io.h
@@ -8,6 +8,7 @@ 
 
 #include <linux/types.h>
 #include <asm/byteorder.h>
+#include <asm/bug.h>
 #include <asm/page.h>
 #include <asm/unaligned.h>