chelsio build failure

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

 



building this sucker as a module caused grief.

drivers/net/chelsio/cxgb2.c:113: error: `__mod_pci_device_table' aliased
to external symbol `t1_pci_tbl'.

This seems to do the trick. (untested beyond compile)

Signed-off-by: Dave Jones <[email protected]>

		Dave

--- 2.6.12rc2mm1/drivers/net/chelsio/cxgb2.c~	2005-04-06 01:30:07.000000000 -0400
+++ 2.6.12rc2mm1/drivers/net/chelsio/cxgb2.c	2005-04-06 01:30:20.000000000 -0400
@@ -110,7 +110,6 @@ static char driver_version[] = "2.1.0";
 MODULE_DESCRIPTION(MODULE_DESC);
 MODULE_AUTHOR("Chelsio Communications");
 MODULE_LICENSE("GPL");
-MODULE_DEVICE_TABLE(pci, t1_pci_tbl);
 
 static int dflt_msg_enable = DFLT_MSG_ENABLE;
 
--- 2.6.12rc2mm1/drivers/net/chelsio/subr.c~	2005-04-06 01:30:25.000000000 -0400
+++ 2.6.12rc2mm1/drivers/net/chelsio/subr.c	2005-04-06 01:30:35.000000000 -0400
@@ -307,6 +307,7 @@ struct pci_device_id t1_pci_tbl[] = {
 	CH_DEVICE(10, 1, CH_BRD_N210_1F),
 	{ 0, }
 };
+MODULE_DEVICE_TABLE(pci, t1_pci_tbl);
 
 /*
  * Return the board_info structure with a given index.  Out-of-range indices
-
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]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux