linux/elf.h: remove kernel prototypes for userspace
PATCH 1/1 linux/elf.h: remove kernel prototypes for userspace
The internal elf notes funcs do are for the kernel-only, so hide them behind __KERNEL__.
Signed-off-by Mike Frysinger <[email protected]>
--- include/linux/elf.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/elf.h +2 -0
@@ -395,6 +395,7 @@ extern Elf64_Dyn _DYNAMIC [];#endif +#ifdef __KERNEL__/* Optional callbacks to write extra ELF notes. */ #ifndef ARCH_HAVE_EXTRA_ELF_NOTES static inline int elf_coredump_extra_notes_size (void ) {return 0 ; }
@@ -404,5 +405,6 @@ static inline int elf_coredump_extra_notes_write(struct file *file,extern int elf_coredump_extra_notes_size (void );extern int elf_coredump_extra_notes_write (struct file *file,loff_t *foffset);#endif +#endif #endif /* _LINUX_ELF_H */
Signature · 1 line
1.6.0.6