From: Andrew Morton <akpm@osdl.org>
To: gcoady@gmail.com
Cc: grant_lkml@dodo.com.au, linux-kernel@vger.kernel.org
Subject: Re: Query: How fix: `ide_generic_all_on' defined but not used??
Date: Wed, 21 Sep 2005 17:28:35 -0700 [thread overview]
Message-ID: <20050921172835.005caf11.akpm@osdl.org> (raw)
In-Reply-To: <mpn3j1p9n087sq45le5tio0np8aoa3s11a@4ax.com>
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.
next prev parent reply other threads:[~2005-09-22 0:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 0:21 Grant Coady
2005-09-22 0:28 ` Andrew Morton [this message]
2005-09-22 1:06 ` Coywolf Qi Hunt
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=20050921172835.005caf11.akpm@osdl.org \
--to=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
all inboxes | Powered by JetHome®