Re: [PATCH 4/6] Werror: Hide warnings on static module devicetables

From: Adrian Bunk
Date: Thu May 29 2008 - 15:55:21 EST


On Thu, May 29, 2008 at 08:41:47PM +0100, David Howells wrote:
> Adrian Bunk <bunk@xxxxxxxxxx> wrote:
>
> > Isn't the warning often a reminder that a driver should be updated to
> > use pci_register_driver() etc. ?
>
> If it is, it's not mentioned in Documentation/ or at the definition of
> MODULE_DEVICE_TABLE.

It might not be intentionally, but the warning goes away when you stuff
the table into a struct pci_driver.

> Also, does that apply to the isapnp driver?

There's struct pnp_driver together with pnp_register_driver() etc.

> David

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

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