Skip to contentSkip to conversation

linux/elf.h: remove kernel prototypes for userspace

PATCH New Mike Frysinger 1 participant 1 message Dec 27, 2008 exec and binfmt

lore
Share & tools
lore
#0 lore raw

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__.

---
 include/linux/elf.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/elf.h +2 -0
index 0b61ca4..1b6e350 100644
@@ -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