Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roland McGrath and committed by
Linus Torvalds
2faa4cf7 e8bebe2f

+2 -2
+2 -2
include/linux/elfcore.h
··· 150 150 } 151 151 #endif 152 152 153 - #endif /* __KERNEL__ */ 154 - 155 153 /* 156 154 * These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out 157 155 * extra segments containing the gate DSO contents. Dumping its ··· 165 167 extern int 166 168 elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit); 167 169 extern size_t elf_core_extra_data_size(void); 170 + 171 + #endif /* __KERNEL__ */ 168 172 169 173 #endif /* _LINUX_ELFCORE_H */