lkml.org 
[lkml]   [2005]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Query: How fix: `ide_generic_all_on' defined but not used??
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.

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

\
 
 \ /
  Last update: 2005-09-22 02:31    [W:0.030 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site