Re: [PATCH] Tulip driver fails to link (2.5.48)

From: Jeff Garzik (jgarzik@pobox.com)
Date: Mon Nov 18 2002 - 17:02:00 EST


Peter Chubb wrote:

> Hi,
> In the tulip driver, the .remove entry of struct pci_driveris
> declared __devexit_p but the function is declared __exit. This
> causes a relocation error when building as a built-in (not a module),
> when CONFIG_HOTPLUG is defined.

Yes... alan snuck that __devexit_p usage in there ;-)

We need to create __exit_p as the #warning indicates, because this
driver does not support CONFIG_HOTPLUG intentionally. For now, I think
it is better to add #ifdef MODULE to the driver in struct pci_driver
definition, because using "__devexit" as in your patch is incorrect.

So if you wanted to submit the patch changing __devexit_p to #ifdef
MODULE, that could probably be applied...

        Jeff

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



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:24 EST