diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-30 15:22:01 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:46:55 +0200 |
commit | 5aa1b9ad681455b5e164ea1c12f80a0b104bf3d5 (patch) | |
tree | 462f0804f72e8486ea425c93866b227f67ea569b /scripts/checkpatch.pl | |
parent | 2e490e7e46a4f6fbf66fa930a25c2991e24c0f83 (diff) | |
download | upstream-5aa1b9ad681455b5e164ea1c12f80a0b104bf3d5.tar.gz upstream-5aa1b9ad681455b5e164ea1c12f80a0b104bf3d5.tar.bz2 upstream-5aa1b9ad681455b5e164ea1c12f80a0b104bf3d5.zip |
tools: libelf: fix headers to trigger -Wundef warnings
When libelf from tools/ is used for building the kernel, compilation
aborts due to access to undefined defines since Kbuild adds -Wundef
to the compiler flags.
Patch the header files to use `#if defined(...)` instead of `#if ...`
to prevent such issues.
Ref: https://github.com/NixOS/nixpkgs/issues/59929
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f3ab336d7ceda929dc8dc4a8b09a9552dc6be0b1)
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions