aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2025-08-22 21:25:03 +0000
committerAlex Williamson <alex.williamson@redhat.com>2025-08-27 12:14:06 -0600
commitce5dc9aa72d9c3d6cb14b3a6aab900124999d8d0 (patch)
treeaaf205789f017c9ed699290b5cded1194dbd713c /tools/include
parenttools headers: Import asm-generic MMIO helpers (diff)
downloadlinux-ce5dc9aa72d9c3d6cb14b3a6aab900124999d8d0.tar.gz
linux-ce5dc9aa72d9c3d6cb14b3a6aab900124999d8d0.zip
tools headers: Import x86 MMIO helper overrides
Import the x86-specific overrides for <asm-generic/io.h> from the kernel headers into tools/include/. Changes made when importing: - Replace CONFIG_X86_64 with __x86_64__. Acked-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20250822212518.4156428-17-dmatlack@google.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/asm/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/include/asm/io.h b/tools/include/asm/io.h
index 9ae219b12604..eed5066f25c4 100644
--- a/tools/include/asm/io.h
+++ b/tools/include/asm/io.h
@@ -2,6 +2,10 @@
#ifndef _TOOLS_ASM_IO_H
#define _TOOLS_ASM_IO_H
+#if defined(__i386__) || defined(__x86_64__)
+#include "../../arch/x86/include/asm/io.h"
+#else
#include <asm-generic/io.h>
+#endif
#endif /* _TOOLS_ASM_IO_H */