diff options
| author | David Matlack <dmatlack@google.com> | 2025-08-22 21:25:02 +0000 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2025-08-27 12:14:06 -0600 |
| commit | 1f9c8edd6a7e9b0fd914cfeef8ce075307e8e702 (patch) | |
| tree | 8ef82dfda5e480ca64901bbca533cf76533a04e2 /tools/include/asm | |
| parent | tools headers: Add stub definition for __iomem (diff) | |
| download | linux-1f9c8edd6a7e9b0fd914cfeef8ce075307e8e702.tar.gz linux-1f9c8edd6a7e9b0fd914cfeef8ce075307e8e702.zip | |
tools headers: Import asm-generic MMIO helpers
Import the asm-generic MMIO helper functions from the kernel headers
into tools/include/. The top-level include is <linux/io.h> which then
includes the arch-specific <asm/io.h>, which then includes
<asm-generic/io.h>. This layout is chosen to match the kernel header
layout and to appease checkpatch.pl (which warns against including
<asm/io.h> or <asm-generic/io.h> directly).
Changes made when importing:
- Add missing includes at the top.
- Stub out mmiowb_set_pending().
- Stub out _THIS_IP_.
- Stub out log_*_mmio() calls.
- Drop the CONFIG_64BIT checks, since tools/include/linux/types.h
always defines u64.
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-16-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/include/asm')
| -rw-r--r-- | tools/include/asm/io.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/include/asm/io.h b/tools/include/asm/io.h new file mode 100644 index 000000000000..9ae219b12604 --- /dev/null +++ b/tools/include/asm/io.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _TOOLS_ASM_IO_H +#define _TOOLS_ASM_IO_H + +#include <asm-generic/io.h> + +#endif /* _TOOLS_ASM_IO_H */ |
