Re: Query: How fix: `ide_generic_all_on' defined but not used??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/22/05, Andrew Morton <[email protected]> wrote:
> Grant Coady <[email protected]> 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/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux