diff mbox series

[05/13] realtek: include io.h in mach-rtl83xx.h

Message ID 20211208214309.233041-6-sander@svanheule.net
State Superseded
Headers show
Series Switch realtek target to upstream platform | expand

Commit Message

Sander Vanheule Dec. 8, 2021, 9:43 p.m. UTC
The readl and writel calls used in macros defined in this header are not
included here. As a result, this header cannot be included by itself,
but must be preceded by other includes providing these calls. Fix this
by including asm/io.h in this header too.

Co-developed-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
 .../files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
index ecec0fec2dce..831edf8de76b 100644
--- a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
+++ b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
@@ -6,6 +6,7 @@ 
 #ifndef _MACH_RTL838X_H_
 #define _MACH_RTL838X_H_
+#include <asm/io.h>
 #include <asm/types.h>
  * Register access macros