From d387a1b4b199630d76b127fded8edbcfecf5a123 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 8 Aug 2022 18:54:23 +0200 Subject: [PATCH] linuxkpi: io.h: Do not include asm/set_memory.h for armv6 and armv7 They do not have the same pmap api and this cannot work for those arch. Fixes: 789dbdbb48574 ("linuxkpi: Add arch_io_{reserve,free}_memtype_wc") Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/compat/linuxkpi/common/include/linux/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index 32183707c25..dba4a8719c7 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -38,7 +38,9 @@ #include #include +#if defined(__amd64__) || defined(__arm64__) || defined(__i386__) || defined(__riscv__) #include +#endif /* * XXX This is all x86 specific. It should be bus space access.