]> www.infradead.org Git - users/hch/misc.git/commitdiff
tools headers: Add stub definition for __iomem
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:01 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:06 +0000 (12:14 -0600)
Add an empty definition for __iomem so that kernel headers that use
__iomem can be imported into tools/include/ with less modifications.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-15-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
tools/include/linux/compiler.h

index 33411ca0cc90f02bab7114aa4ea546f9a40fc3f2..f40bd2b04c29872ff1ee10442a8615f59c42f78d 100644 (file)
 # define __force
 #endif
 
+#ifndef __iomem
+# define __iomem
+#endif
+
 #ifndef __weak
 # define __weak                        __attribute__((weak))
 #endif