mirror-linux/tools/include/uapi/linux
Thomas Weißschuh 0efdedb335 tools/include: make uapi/linux/types.h usable from assembly
The "real" linux/types.h UAPI header gracefully degrades to a NOOP when
included from assembly code.

Mirror this behaviour in the tools/ variant.

Test for __ASSEMBLER__ over __ASSEMBLY__ as the former is provided by the
toolchain automatically.

Reported-by: Mark Brown <broonie@kernel.org>
Closes: https://lore.kernel.org/lkml/af553c62-ca2f-4956-932c-dd6e3a126f58@sirena.org.uk/
Fixes: c9fbaa8795 ("selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20250321-uapi-consistency-v1-1-439070118dc0@linutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-04-06 12:55:31 -07:00
..
tc_act
bits.h tools headers: Synchronize {uapi/}linux/bits.h with the kernel sources 2024-10-28 12:32:25 -03:00
bpf.h bpf-next-6.15 2025-03-30 12:43:03 -07:00
bpf_common.h
bpf_perf_event.h
btf.h docs/bpf: Document the semantics of BTF tags with kind_flag 2025-02-05 16:17:59 -08:00
const.h treewide: fix typo 'unsigned __init128' -> 'unsigned __int128' 2025-03-05 12:00:03 -05:00
elf.h tools/include: Add uapi/linux/elf.h 2025-03-03 20:00:12 +01:00
erspan.h
fadvise.h
filter.h
fs.h tools: sync uapi/linux/fs.h header into tools subdir 2024-07-12 15:52:12 -07:00
fscrypt.h
hw_breakpoint.h
if_link.h netkit: Allow for configuring needed_{head,tail}room 2025-01-06 09:48:49 +01:00
if_tun.h
if_xdp.h xsk: Add launch time hardware offload support to XDP Tx metadata 2025-02-20 15:13:45 -08:00
in.h tools headers UAPI: Sync the linux/in.h with the kernel sources 2024-09-30 17:23:38 -03:00
io_uring.h
kcmp.h
kvm.h tools headers: Sync uapi/linux/kvm.h with the kernel sources 2024-12-04 14:34:49 -08:00
memfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00
mman.h mm: add MAP_DROPPABLE for designating always lazily freeable mappings 2024-07-19 20:22:12 +02:00
netdev.h bpf-next-for-netdev 2025-02-21 15:59:47 -08:00
netlink.h
perf_event.h tools headers: Sync uapi/linux/perf_event.h with the kernel sources 2024-12-04 14:34:49 -08:00
pkt_cls.h net/sched: Remove uapi support for tcindex classifier 2024-01-02 14:25:51 +00:00
pkt_sched.h net/sched: Remove uapi support for CBQ qdisc 2024-01-02 14:25:51 +00:00
prctl.h selftests/mm: kvm, mdwe fixes to avoid requiring "make headers" 2024-07-03 19:30:07 -07:00
seccomp.h
seg6.h
seg6_local.h
stat.h tools/include: Sync filesystem headers with the kernel sources 2024-08-07 10:59:07 -07:00
stddef.h stddef: make __struct_group() UAPI C++-friendly 2024-12-20 09:05:53 -08:00
tcp.h
tls.h
types.h tools/include: make uapi/linux/types.h usable from assembly 2025-04-06 12:55:31 -07:00
userfaultfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00