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

From: Kronos
Date: Mon Feb 02 2004 - 15:23:42 EST



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@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
It can't rain forever,
but you can die before seeing the sun again.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/