diff options
author | Kirill A. Shutemov <k.shutemov@gmail.com> | 2008-02-07 03:15:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:30 -0500 |
commit | 6cc931b9b5ec652c90b928f3ec2163f261552c91 (patch) | |
tree | 0f01557ada755c56baffe102614149ad190ebb02 | |
parent | 516c25a86f6bdad77ded01a43c52c5569c8d690c (diff) |
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>
-rw-r--r-- | include/asm-generic/Kbuild.asm | 1 | ||||
-rw-r--r-- | include/linux/Kbuild | 2 | ||||
-rw-r--r-- | include/linux/elf.h | 2 | ||||
-rw-r--r-- | include/linux/elfcore.h | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm index 1f8c3df1c26d..d00fd67e6367 100644 --- a/include/asm-generic/Kbuild.asm +++ b/include/asm-generic/Kbuild.asm | |||
@@ -29,5 +29,4 @@ unifdef-y += types.h | |||
29 | unifdef-y += unistd.h | 29 | unifdef-y += unistd.h |
30 | 30 | ||
31 | # These probably shouldn't be exported | 31 | # These probably shouldn't be exported |
32 | unifdef-y += elf.h | ||
33 | unifdef-y += page.h | 32 | unifdef-y += page.h |
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 6723bc973dac..0d4f55d97ae9 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -60,7 +60,6 @@ header-y += dqblk_v2.h | |||
60 | header-y += dqblk_xfs.h | 60 | header-y += dqblk_xfs.h |
61 | header-y += efs_fs_sb.h | 61 | header-y += efs_fs_sb.h |
62 | header-y += elf-fdpic.h | 62 | header-y += elf-fdpic.h |
63 | header-y += elf.h | ||
64 | header-y += elf-em.h | 63 | header-y += elf-em.h |
65 | header-y += fadvise.h | 64 | header-y += fadvise.h |
66 | header-y += fd.h | 65 | header-y += fd.h |
@@ -190,6 +189,7 @@ unifdef-y += dccp.h | |||
190 | unifdef-y += dirent.h | 189 | unifdef-y += dirent.h |
191 | unifdef-y += dlm.h | 190 | unifdef-y += dlm.h |
192 | unifdef-y += edd.h | 191 | unifdef-y += edd.h |
192 | unifdef-y += elf.h | ||
193 | unifdef-y += elfcore.h | 193 | unifdef-y += elfcore.h |
194 | unifdef-y += errno.h | 194 | unifdef-y += errno.h |
195 | unifdef-y += errqueue.h | 195 | unifdef-y += errqueue.h |
diff --git a/include/linux/elf.h b/include/linux/elf.h index 7ceb24d87c1a..ed98c761bae7 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
@@ -3,7 +3,9 @@ | |||
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | #include <linux/elf-em.h> | 5 | #include <linux/elf-em.h> |
6 | #ifdef __KERNEL__ | ||
6 | #include <asm/elf.h> | 7 | #include <asm/elf.h> |
8 | #endif | ||
7 | 9 | ||
8 | struct file; | 10 | struct file; |
9 | 11 | ||
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h index 0432de7d4707..5ca54d77079f 100644 --- a/include/linux/elfcore.h +++ b/include/linux/elfcore.h | |||
@@ -16,7 +16,9 @@ struct elf_siginfo | |||
16 | int si_errno; /* errno */ | 16 | int si_errno; /* errno */ |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #ifdef __KERNEL__ | ||
19 | #include <asm/elf.h> | 20 | #include <asm/elf.h> |
21 | #endif | ||
20 | 22 | ||
21 | #ifndef __KERNEL__ | 23 | #ifndef __KERNEL__ |
22 | typedef elf_greg_t greg_t; | 24 | typedef elf_greg_t greg_t; |