From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Roland McGrath <roland@redhat.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] linux/elfcore.h: hide kernel functions
Date: Sat, 22 May 2010 12:40:03 +0900 (JST) [thread overview]
Message-ID: <20100522123923.1E83.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <20100522031650.D564B49A4D@magilla.sf.frob.com>
> The declarations for elf_core_extra_phdrs() et al got added on the
> wrong side of #ifdef __KERNEL__ in linux/elfcore.h so they leak into
> the user header copy and we get a warning at build time about it.
>
> Signed-off-by: Roland McGrath <roland@redhat.com>
Ah, good. this one kill annoying warnings.
Thanks.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> ---
> include/linux/elfcore.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
> index e687bc3..394a3e0 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
> @@ -168,4 +166,6 @@ 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 */
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2010-05-22 3:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 3:16 Roland McGrath
2010-05-22 3:40 ` KOSAKI Motohiro [this message]
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=20100522123923.1E83.A69D9226@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®