From: Coywolf Qi Hunt <coywolf@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: gcoady@gmail.com, grant_lkml@dodo.com.au, linux-kernel@vger.kernel.org
Subject: Re: Query: How fix: `ide_generic_all_on' defined but not used??
Date: Thu, 22 Sep 2005 09:06:12 +0800 [thread overview]
Message-ID: <2cd57c900509211806291f7b77@mail.gmail.com> (raw)
In-Reply-To: <20050921172835.005caf11.akpm@osdl.org>
On 9/22/05, Andrew Morton <akpm@osdl.org> wrote:
> Grant Coady <grant_lkml@dodo.com.au> wrote:
> >
> > drivers/ide/pci/generic.c:45: warning: `ide_generic_all_on' defined but not used
> >
> >
> > Source:
> > ...
> > static int ide_generic_all; /* Set to claim all devices */
> >
> > static int __init ide_generic_all_on(char *unused)
> > {
> > ide_generic_all = 1;
> > printk(KERN_INFO "IDE generic will claim all unknown PCI IDE storage controllers.\n");
> > return 1;
> > }
> >
> > __setup("all-generic-ide", ide_generic_all_on);
> > ...
> >
> > How to silence this type of warning?
>
> You could try poking around in the __setup() definition, using
> __attribute_used__, perhaps.
>
Weird, we have many such things, but we don't get this warning there.
Look at __setup() in main.c.
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
prev parent reply other threads:[~2005-09-22 1:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 0:21 Query: How fix: `ide_generic_all_on' defined but not used?? Grant Coady
2005-09-22 0:28 ` Andrew Morton
2005-09-22 1:06 ` Coywolf Qi Hunt [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=2cd57c900509211806291f7b77@mail.gmail.com \
--to=coywolf@gmail.com \
--cc=akpm@osdl.org \
--cc=gcoady@gmail.com \
--cc=grant_lkml@dodo.com.au \
--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