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

Unexport asm/elf.h

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>

authored by

Kirill A. Shutemov and committed by
Linus Torvalds
6cc931b9 516c25a8

+5 -2
-1
include/asm-generic/Kbuild.asm
··· 29 29 unifdef-y += unistd.h 30 30 31 31 # These probably shouldn't be exported 32 - unifdef-y += elf.h 33 32 unifdef-y += page.h
+1 -1
include/linux/Kbuild
··· 60 60 header-y += dqblk_xfs.h 61 61 header-y += efs_fs_sb.h 62 62 header-y += elf-fdpic.h 63 - header-y += elf.h 64 63 header-y += elf-em.h 65 64 header-y += fadvise.h 66 65 header-y += fd.h ··· 189 190 unifdef-y += dirent.h 190 191 unifdef-y += dlm.h 191 192 unifdef-y += edd.h 193 + unifdef-y += elf.h 192 194 unifdef-y += elfcore.h 193 195 unifdef-y += errno.h 194 196 unifdef-y += errqueue.h
+2
include/linux/elf.h
··· 3 3 4 4 #include <linux/types.h> 5 5 #include <linux/elf-em.h> 6 + #ifdef __KERNEL__ 6 7 #include <asm/elf.h> 8 + #endif 7 9 8 10 struct file; 9 11
+2
include/linux/elfcore.h
··· 16 16 int si_errno; /* errno */ 17 17 }; 18 18 19 + #ifdef __KERNEL__ 19 20 #include <asm/elf.h> 21 + #endif 20 22 21 23 #ifndef __KERNEL__ 22 24 typedef elf_greg_t greg_t;