Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools headers: Add stub definition for __iomem

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>

authored by

David Matlack and committed by
Alex Williamson
9bf9b185 fded8da4

+4
+4
tools/include/linux/compiler.h
··· 138 138 # define __force 139 139 #endif 140 140 141 + #ifndef __iomem 142 + # define __iomem 143 + #endif 144 + 141 145 #ifndef __weak 142 146 # define __weak __attribute__((weak)) 143 147 #endif