mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Prarit Bhargava <prarit@redhat.com>
To: linux-kernel@vger.kernel.org, d.hatayama@jp.fujitsu.com
Cc: Prarit Bhargava <prarit@redhat.com>
Subject: [PATCH]: Fix userspace warnings in elfcore.h
Date: Mon, 24 May 2010 09:54:44 -0400	[thread overview]
Message-ID: <20100524134942.5765.4089.sendpatchset@prarit.bos.redhat.com> (raw)

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 */

             reply	other threads:[~2010-05-24 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 13:54 Prarit Bhargava [this message]
2010-05-24 14:36 ` Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100524134942.5765.4089.sendpatchset@prarit.bos.redhat.com \
    --to=prarit@redhat.com \
    --cc=d.hatayama@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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