Skip to content

Commit b558051

Browse files
fvincenzoKAGA-KOKO
authored andcommitted
linux/elfnote.h: Replace elf.h with UAPI equivalent
The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Replace linux/elf.h with UAPI equivalent in elfnote.h to make the header suitable for vDSO inclusion. Signed-off-by: Vincenzo Frascino <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent f58dd03 commit b558051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/elfnote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
ELFNOTE_END
6060

6161
#else /* !__ASSEMBLER__ */
62-
#include <linux/elf.h>
62+
#include <uapi/linux/elf.h>
6363
/*
6464
* Use an anonymous structure which matches the shape of
6565
* Elf{32,64}_Nhdr, but includes the name and desc data. The size and

0 commit comments

Comments
 (0)