[PATCH 05/13] realtek: include io.h in mach-rtl83xx.h
Sander Vanheule
sander at svanheule.net
Wed Dec 8 13:43:01 PST 2021
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 at gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
.../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
More information about the openwrt-devel
mailing list