Re: [patch] linux/io.h: forward declare struct pci_dev

From: Al Viro
Date: Sun Feb 11 2007 - 03:22:40 EST


On Sun, Feb 11, 2007 at 07:10:47AM +0000, Christoph Hellwig wrote:
> On Sun, Feb 11, 2007 at 06:34:31AM +0000, Al Viro wrote:
> > +config NO_IOPORT
> > + bool
> > + default n
>
> please make this IOPORT. config symbols with an implicit negation
> are quite horrible for the brain to understand.

Take a look at lib/Kconfig. And see HAS_IOPORT there.

The reason for doing it that way: majority of targets has that stuff
already. Even more should have it eventually. IOW, the default should
be positive. Modified in arch/*/Kconfig of targets where it doesn't
work. Which is exactly what's done here.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/