diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-10-03 19:43:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-05 03:34:29 -0400 |
commit | cf93c94581bab447a5634c6d737c1cf38c080261 (patch) | |
tree | 71fc11564683485173025eaac74513d163ade236 /drivers/net/phy/national.c | |
parent | 29fa060eab3f524d338566d34c1d9e704579ae5e (diff) |
net/phy: fix many "defined but unused" warnings
MODULE_DEVICE_TABLE only expands to something if it's compiled
for a module. So when building-in support for the phys, the
mdio_device_id tables are unused. Marking them with __maybe_unused
fixes the following warnings:
drivers/net/phy/bcm63xx.c:134: warning: 'bcm63xx_tbl' defined but not used
drivers/net/phy/broadcom.c:933: warning: 'broadcom_tbl' defined but not used
drivers/net/phy/cicada.c:162: warning: 'cicada_tbl' defined but not used
drivers/net/phy/davicom.c:222: warning: 'davicom_tbl' defined but not used
drivers/net/phy/et1011c.c:114: warning: 'et1011c_tbl' defined but not used
drivers/net/phy/icplus.c:137: warning: 'icplus_tbl' defined but not used
drivers/net/phy/lxt.c:226: warning: 'lxt_tbl' defined but not used
drivers/net/phy/marvell.c:724: warning: 'marvell_tbl' defined but not used
drivers/net/phy/micrel.c:234: warning: 'micrel_tbl' defined but not used
drivers/net/phy/national.c:154: warning: 'ns_tbl' defined but not used
drivers/net/phy/qsemi.c:141: warning: 'qs6612_tbl' defined but not used
drivers/net/phy/realtek.c:82: warning: 'realtek_tbl' defined but not used
drivers/net/phy/smsc.c:257: warning: 'smsc_tbl' defined but not used
drivers/net/phy/ste10Xp.c:135: warning: 'ste10Xp_tbl' defined but not used
drivers/net/phy/vitesse.c:195: warning: 'vitesse_tbl' defined but not used
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/national.c')
-rw-r--r-- | drivers/net/phy/national.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/national.c b/drivers/net/phy/national.c index a73ba0bcc0ce..0620ba963508 100644 --- a/drivers/net/phy/national.c +++ b/drivers/net/phy/national.c | |||
@@ -151,7 +151,7 @@ MODULE_LICENSE("GPL"); | |||
151 | module_init(ns_init); | 151 | module_init(ns_init); |
152 | module_exit(ns_exit); | 152 | module_exit(ns_exit); |
153 | 153 | ||
154 | static struct mdio_device_id ns_tbl[] = { | 154 | static struct mdio_device_id __maybe_unused ns_tbl[] = { |
155 | { DP83865_PHY_ID, 0xfffffff0 }, | 155 | { DP83865_PHY_ID, 0xfffffff0 }, |
156 | { } | 156 | { } |
157 | }; | 157 | }; |