Skip to content

Commit

Permalink
Unexport asm/elf.h
Browse files Browse the repository at this point in the history
Do not export asm/elf.h during make headers_install.

Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kirill A. Shutemov authored and Linus Torvalds committed Feb 7, 2008
1 parent 516c25a commit 6cc931b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/asm-generic/Kbuild.asm
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ unifdef-y += types.h
unifdef-y += unistd.h

# These probably shouldn't be exported
unifdef-y += elf.h
unifdef-y += page.h
2 changes: 1 addition & 1 deletion include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ header-y += dqblk_v2.h
header-y += dqblk_xfs.h
header-y += efs_fs_sb.h
header-y += elf-fdpic.h
header-y += elf.h
header-y += elf-em.h
header-y += fadvise.h
header-y += fd.h
Expand Down Expand Up @@ -190,6 +189,7 @@ unifdef-y += dccp.h
unifdef-y += dirent.h
unifdef-y += dlm.h
unifdef-y += edd.h
unifdef-y += elf.h
unifdef-y += elfcore.h
unifdef-y += errno.h
unifdef-y += errqueue.h
Expand Down
2 changes: 2 additions & 0 deletions include/linux/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include <linux/types.h>
#include <linux/elf-em.h>
#ifdef __KERNEL__
#include <asm/elf.h>
#endif

struct file;

Expand Down
2 changes: 2 additions & 0 deletions include/linux/elfcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ struct elf_siginfo
int si_errno; /* errno */
};

#ifdef __KERNEL__
#include <asm/elf.h>
#endif

#ifndef __KERNEL__
typedef elf_greg_t greg_t;
Expand Down

0 comments on commit 6cc931b

Please sign in to comment.