git: d387a1b4b199 - main - linuxkpi: io.h: Do not include asm/set_memory.h for armv6 and armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Aug 2022 16:56:07 UTC
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=d387a1b4b199630d76b127fded8edbcfecf5a123 commit d387a1b4b199630d76b127fded8edbcfecf5a123 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-08-08 16:54:23 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-08-08 16:55:58 +0000 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 32183707c255..dba4a8719c77 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -38,7 +38,9 @@ #include <linux/compiler.h> #include <linux/types.h> +#if defined(__amd64__) || defined(__arm64__) || defined(__i386__) || defined(__riscv__) #include <asm/set_memory.h> +#endif /* * XXX This is all x86 specific. It should be bus space access.