diff options
| author | Jakub Kicinski <[email protected]> | 2025-08-25 20:18:28 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-08-28 11:06:48 +0000 |
| commit | c2a756891bb428104fa8899998ba277042274cdb (patch) | |
| tree | 04ce81f12ce2a7d74e474572809048f8bfb8a69b /net/ipv6/raw.c | |
| parent | Merge branch 'eth-fbnic-extend-hw-stats-support' (diff) | |
| download | kernel-c2a756891bb428104fa8899998ba277042274cdb.tar.gz kernel-c2a756891bb428104fa8899998ba277042274cdb.zip | |
uapi: wrap compiler_types.h in an ifdef instead of the implicit strip
The uAPI stddef header includes compiler_types.h, a kernel-only
header, to make sure that kernel definitions of annotations
like __counted_by() take precedence.
There is a hack in scripts/headers_install.sh which strips includes
of compiler.h and compiler_types.h when installing uAPI headers.
While explicit handling makes sense for compiler.h, which is included
all over the uAPI, compiler_types.h is only included by stddef.h
(within the uAPI, obviously it's included in kernel code a lot).
Remove the stripping from scripts/headers_install.sh and wrap
the include of compiler_types.h in #ifdef __KERNEL__ instead.
This should be equivalent functionally, but is easier to understand
to a casual reader of the code. It also makes it easier to work
with kernel headers directly from under tools/
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv6/raw.c')
0 files changed, 0 insertions, 0 deletions
