[Compile Regression in 2.4.25-pre8][PATCH 32/42]

Kronos
2004-02-02T20:04:15Z

ns83820.c:1708: warning: `ns83820_probe_phy' defined but not used

ns83820_probe_phy is still incomplete. Wrap it with #ifdef
PHY_CODE_IS_FINISHED as in other part of the driver.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/net/ns83820.c linux-2.4/drivers/net/ns83820.c
--- linux-2.4-vanilla/drivers/net/ns83820.c Sat Jan 31 15:54:42 2004
+++ linux-2.4/drivers/net/ns83820.c Sat Jan 31 18:38:16 2004
@@ -1704,6 +1704,7 @@
return data;
}

+#ifdef PHY_CODE_IS_FINISHED
static void ns83820_probe_phy(struct ns83820 *dev)
{
static int first;
@@ -1757,6 +1758,7 @@
dprintk("version: 0x%04x 0x%04x\n", a, b);
}
}
+#endif

static int __devinit ns83820_init_one(struct pci_dev *pci_dev, const struct pci_device_id *id)
{

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
It can't rain forever,
but you can die before seeing the sun again.