* [PATCH]: Fix userspace warnings in elfcore.h
@ 2010-05-24 13:54 Prarit Bhargava
2010-05-24 14:36 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Prarit Bhargava @ 2010-05-24 13:54 UTC (permalink / raw)
To: linux-kernel, d.hatayama; +Cc: Prarit Bhargava
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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]: Fix userspace warnings in elfcore.h
2010-05-24 13:54 [PATCH]: Fix userspace warnings in elfcore.h Prarit Bhargava
@ 2010-05-24 14:36 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2010-05-24 14:36 UTC (permalink / raw)
To: Prarit Bhargava; +Cc: linux-kernel, d.hatayama
On Mon, 24 May 2010 09:54:44 -0400 Prarit Bhargava wrote:
> 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>
Patch was merged last Saturyday:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2faa4cf76e7d229016240b79b50a43d81f458323
> 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 */
> --
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-24 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-24 13:54 [PATCH]: Fix userspace warnings in elfcore.h Prarit Bhargava
2010-05-24 14:36 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome