[PATCH 2/7] ARM: <asm/io.h>: define macros for I/O memcpy/memset
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Feb 2 14:40:54 EST 2021
<asm-generic/io.h> expects architectures to define memcpy_toio,
memcpy_fromio and memset_io as macros as it checks for their existence
with #ifndef. Only ARM defines an own implementation, but does so
as function declaration. Add the missing macros.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
v1 -> v2:
- reordered commit to resolve intermittent breakage
---
arch/arm/include/asm/io.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
index 072b47317c03..b442a37b9c1d 100644
--- a/arch/arm/include/asm/io.h
+++ b/arch/arm/include/asm/io.h
@@ -3,6 +3,10 @@
#define IO_SPACE_LIMIT 0
+#define memcpy_fromio memcpy_fromio
+#define memcpy_toio memcpy_toio
+#define memset_io memset_io
+
#include <asm-generic/io.h>
#include <asm-generic/bitio.h>
--
2.30.0
More information about the barebox
mailing list