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

From: Niklas Schnelle
Date: Wed Apr 21 2021 - 07:18:31 EST


From: Niklas Schnelle <niklas@xxxxxxxxx>

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@xxxxxxxxx>
---
arch/arc/include/asm/io.h | 1 +
1 file changed, 1 insertion(+)

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>

--
2.25.1