From: Andrew Morton <akpm@osdl.org>
To: domen@coderock.org
Cc: linux-kernel@vger.kernel.org, domen@coderock.org, yrgrknmxpzlk@gawab.com
Subject: Re: [patch 09/12] include/linux/module.h - compile warning cleanup
Date: Sun, 6 Mar 2005 16:46:26 -0800 [thread overview]
Message-ID: <20050306164626.48bb5be8.akpm@osdl.org> (raw)
In-Reply-To: <20050305153535.EFDCC1EE1E@trashy.coderock.org>
domen@coderock.org wrote:
>
> , extinguish warning for module structure that is still
> live when module is compiled into the kernel; do this in one central
> place so all such type warnings are automatically taken care of
>
> Signed-off-by: Stephen Biggs <yrgrknmxpzlk@gawab.com>
> Signed-off-by: Domen Puncer <domen@coderock.org>
> ---
>
>
> kj-domen/include/linux/module.h | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletion(-)
>
> diff -puN include/linux/module.h~extinguish_warnings-include_linux_module.h include/linux/module.h
> --- kj/include/linux/module.h~extinguish_warnings-include_linux_module.h 2005-03-05 16:12:03.000000000 +0100
> +++ kj-domen/include/linux/module.h 2005-03-05 16:12:03.000000000 +0100
> @@ -93,7 +93,10 @@ extern struct module __this_module;
>
> #else /* !MODULE */
>
> -#define MODULE_GENERIC_TABLE(gtype,name)
> +#define MODULE_GENERIC_TABLE(gtype,name) \
> +extern const struct gtype##_id __not_mod_##name##_unused \
> + __attribute__ ((unused, weak, alias(__stringify(name))))
> +
There's already a patch similar to this in Sam's bk-kbuild tree.
prev parent reply other threads:[~2005-03-07 0:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-05 15:35 domen
2005-03-07 0:46 ` Andrew Morton [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=20050306164626.48bb5be8.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=domen@coderock.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yrgrknmxpzlk@gawab.com \
/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