lkml.org 
[lkml]   [2010]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH]: Fix userspace warnings in elfcore.h
Fixes compile warning:

/home/rhel6/usr/include/linux/elfcore.h:104: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:105: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:108: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:110: userspace cannot call function or variable defined in the kernel

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index e687bc3..26f7486 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -150,8 +150,6 @@ static inline int elf_core_copy_task_xfpregs(struct task_struct *t, elf_fpxregse
}
#endif

-#endif /* __KERNEL__ */
-
/*
* These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out
* extra segments containing the gate DSO contents. Dumping its
@@ -167,5 +165,6 @@ elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
extern int
elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit);
extern size_t elf_core_extra_data_size(void);
+#endif /* __KERNEL__ */

#endif /* _LINUX_ELFCORE_H */

\
 
 \ /
  Last update: 2010-05-24 15:57    [W:0.029 / U:2.116 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site