Skip to content

Commit

Permalink
linux/elfcore.h: hide kernel functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed May 22, 2010
1 parent e8bebe2 commit 2faa4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/elfcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ static inline int elf_core_copy_task_xfpregs(struct task_struct *t, elf_fpxregse
}
#endif

#endif /* __KERNEL__ */

/*
* These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out
* extra segments containing the gate DSO contents. Dumping its
Expand All @@ -168,4 +166,6 @@ extern int
elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit);
extern size_t elf_core_extra_data_size(void);

#endif /* __KERNEL__ */

#endif /* _LINUX_ELFCORE_H */

0 comments on commit 2faa4cf

Please sign in to comment.