[PATCH] linux/elf.h: remove kernel prototypes for userspace
From: Mike Frysinger
Date: Sat Dec 27 2008 - 01:50:14 EST
The internal elf notes funcs do are for the kernel-only, so hide them
behind __KERNEL__.
Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
include/linux/elf.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/elf.h b/include/linux/elf.h
index 0b61ca4..1b6e350 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -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 */
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/