summaryrefslogtreecommitdiffstats
path: root/include/linux/elf.h
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-01-30 21:05:50 +0530
committerJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-01-30 23:48:33 +0530
commitf4aa1c30255278b7b50a1cd273c7b4a46f099a90 (patch)
tree449d9ea329f2b335d464ae5168c86ea40a1fd50d /include/linux/elf.h
parent177a858ff8d71a8e7f8b0ef53ff49441e29c8fb1 (diff)
downloadop-kernel-dev-f4aa1c30255278b7b50a1cd273c7b4a46f099a90.zip
op-kernel-dev-f4aa1c30255278b7b50a1cd273c7b4a46f099a90.tar.gz
headers_check fix: linux/elf.h
fix the following 'make headers_check' warnings: usr/include/linux/elf.h:379: extern's make no sense in userspace usr/include/linux/elf.h:387: extern's make no sense in userspace usr/include/linux/elf.h:401: extern's make no sense in userspace usr/include/linux/elf.h:402: extern's make no sense in userspace Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Diffstat (limited to 'include/linux/elf.h')
-rw-r--r--include/linux/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/elf.h b/include/linux/elf.h
index 0b61ca4..45a937b 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -377,6 +377,7 @@ typedef struct elf64_note {
Elf64_Word n_type; /* Content type */
} Elf64_Nhdr;
+#ifdef __KERNEL__
#if ELF_CLASS == ELFCLASS32
extern Elf32_Dyn _DYNAMIC [];
@@ -404,5 +405,5 @@ static inline int elf_coredump_extra_notes_write(struct file *file,
extern int elf_coredump_extra_notes_size(void);
extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);
#endif
-
+#endif /* __KERNEL__ */
#endif /* _LINUX_ELF_H */
OpenPOWER on IntegriCloud