Re: IBM PCI Hotplug driver doesn't compile in 2.4.19-pre4

Greg KH (greg@kroah.com)
Fri, 22 Mar 2002 11:53:38 -0800


On Thu, Mar 21, 2002 at 09:51:30PM +0100, Adrian Bunk wrote:
>
> Building a kernel with the IBM PCI Hotplug driver statically included
> fails at the final linking stage with a:

Nevermind about the .config.

Let me know if the patch below does not solve this for you.

thanks,

greg k-h

diff -Nru a/drivers/hotplug/ibmphp_core.c b/drivers/hotplug/ibmphp_core.c
--- a/drivers/hotplug/ibmphp_core.c Fri Mar 22 11:47:34 2002
+++ b/drivers/hotplug/ibmphp_core.c Fri Mar 22 11:47:34 2002
@@ -56,7 +56,7 @@
MODULE_DESCRIPTION (DRIVER_DESC);

static int *ops[MAX_OPS + 1];
-static struct pci_ops *ibmphp_pci_root_ops;
+struct pci_ops *ibmphp_pci_root_ops;
static int max_slots;

static int irqs[16]; /* PIC mode IRQ's we're using so far (in case MPS tables don't provide default info for empty slots */
-
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/