Unexport asm/elf.h
authorKirill A. Shutemov <k.shutemov@gmail.com>
Thu, 7 Feb 2008 08:15:55 +0000 (00:15 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:30 +0000 (08:42 -0800)
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>
include/asm-generic/Kbuild.asm
include/linux/Kbuild
include/linux/elf.h
include/linux/elfcore.h

index 1f8c3df1c26d5c25abf54df71c31c943a7c21497..d00fd67e636767bf64285a7dbd8403cca99b3b7f 100644 (file)
@@ -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
index 6723bc973dac7656f2cacb92532cf6f8da013068..0d4f55d97ae93315c36cd9a6a001a25f6eb90fa4 100644 (file)
@@ -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
@@ -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
index 7ceb24d87c1a970b06835f5c645bb0ab2e31f1d0..ed98c761bae7f77afbe772506d2d0f75a9a95b92 100644 (file)
@@ -3,7 +3,9 @@
 
 #include <linux/types.h>
 #include <linux/elf-em.h>
+#ifdef __KERNEL__
 #include <asm/elf.h>
+#endif
 
 struct file;
 
index 0432de7d47077f2e3dd06b611e771ea34410de21..5ca54d77079f1dd14b713d54e5f4566f01da59dd 100644 (file)
@@ -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;