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.o...@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.o...@gmail.com>
Signed-off-by: Sander Vanheule <san...@svanheule.net>
Tested-by: Bjørn Mork <bj...@mork.no>
---
 .../files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.33.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to