Skip to contentSkip to conversation

chelsio build failure

PATCH Dave Jones 1 participant 1 message Apr 6, 2005 Network drivers

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

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)

Dave

drivers/net/chelsio/cxgb2.c renamed from drivers/net/chelsio/cxgb2.c~ +0 -1
@@ -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;
 
drivers/net/chelsio/subr.c renamed from drivers/net/chelsio/subr.c~ +1 -0
@@ -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