diff options
author | Roland McGrath <roland@redhat.com> | 2010-05-21 23:16:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 23:29:10 -0400 |
commit | 2faa4cf76e7d229016240b79b50a43d81f458323 (patch) | |
tree | 587b7ccc902ef1f6946e57a6ccdbb4fa7e16bf41 | |
parent | e8bebe2f71d26871b0970ae1d9cf0ed3cdd9569d (diff) |
linux/elfcore.h: hide kernel functions
The declarations for elf_core_extra_phdrs() et al got added on the
wrong side of #ifdef __KERNEL__ in linux/elfcore.h so they leak into
the user header copy and we get a warning at build time about it.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/elfcore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h index e687bc3ba4da..394a3e0e4a6b 100644 --- a/include/linux/elfcore.h +++ b/include/linux/elfcore.h | |||
@@ -150,8 +150,6 @@ static inline int elf_core_copy_task_xfpregs(struct task_struct *t, elf_fpxregse | |||
150 | } | 150 | } |
151 | #endif | 151 | #endif |
152 | 152 | ||
153 | #endif /* __KERNEL__ */ | ||
154 | |||
155 | /* | 153 | /* |
156 | * These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out | 154 | * These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out |
157 | * extra segments containing the gate DSO contents. Dumping its | 155 | * extra segments containing the gate DSO contents. Dumping its |
@@ -168,4 +166,6 @@ extern int | |||
168 | elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit); | 166 | elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit); |
169 | extern size_t elf_core_extra_data_size(void); | 167 | extern size_t elf_core_extra_data_size(void); |
170 | 168 | ||
169 | #endif /* __KERNEL__ */ | ||
170 | |||
171 | #endif /* _LINUX_ELFCORE_H */ | 171 | #endif /* _LINUX_ELFCORE_H */ |