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 | |
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')
-rw-r--r-- | drivers/net/phy/bcm63xx.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/broadcom.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/cicada.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/davicom.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/et1011c.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/icplus.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/lxt.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/marvell.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/micrel.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/national.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/qsemi.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/realtek.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/smsc.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/ste10Xp.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/vitesse.c | 2 |
15 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/phy/bcm63xx.c b/drivers/net/phy/bcm63xx.c index c12815679837..e16f98cb4f04 100644 --- a/drivers/net/phy/bcm63xx.c +++ b/drivers/net/phy/bcm63xx.c | |||
@@ -131,7 +131,7 @@ static void __exit bcm63xx_phy_exit(void) | |||
131 | module_init(bcm63xx_phy_init); | 131 | module_init(bcm63xx_phy_init); |
132 | module_exit(bcm63xx_phy_exit); | 132 | module_exit(bcm63xx_phy_exit); |
133 | 133 | ||
134 | static struct mdio_device_id bcm63xx_tbl[] = { | 134 | static struct mdio_device_id __maybe_unused bcm63xx_tbl[] = { |
135 | { 0x00406000, 0xfffffc00 }, | 135 | { 0x00406000, 0xfffffc00 }, |
136 | { 0x002bdc00, 0xfffffc00 }, | 136 | { 0x002bdc00, 0xfffffc00 }, |
137 | { } | 137 | { } |
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 4accd83d3dfe..d84c4224dd12 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c | |||
@@ -930,7 +930,7 @@ static void __exit broadcom_exit(void) | |||
930 | module_init(broadcom_init); | 930 | module_init(broadcom_init); |
931 | module_exit(broadcom_exit); | 931 | module_exit(broadcom_exit); |
932 | 932 | ||
933 | static struct mdio_device_id broadcom_tbl[] = { | 933 | static struct mdio_device_id __maybe_unused broadcom_tbl[] = { |
934 | { PHY_ID_BCM5411, 0xfffffff0 }, | 934 | { PHY_ID_BCM5411, 0xfffffff0 }, |
935 | { PHY_ID_BCM5421, 0xfffffff0 }, | 935 | { PHY_ID_BCM5421, 0xfffffff0 }, |
936 | { PHY_ID_BCM5461, 0xfffffff0 }, | 936 | { PHY_ID_BCM5461, 0xfffffff0 }, |
diff --git a/drivers/net/phy/cicada.c b/drivers/net/phy/cicada.c index 1a325d63756b..d28173161c21 100644 --- a/drivers/net/phy/cicada.c +++ b/drivers/net/phy/cicada.c | |||
@@ -159,7 +159,7 @@ static void __exit cicada_exit(void) | |||
159 | module_init(cicada_init); | 159 | module_init(cicada_init); |
160 | module_exit(cicada_exit); | 160 | module_exit(cicada_exit); |
161 | 161 | ||
162 | static struct mdio_device_id cicada_tbl[] = { | 162 | static struct mdio_device_id __maybe_unused cicada_tbl[] = { |
163 | { 0x000fc410, 0x000ffff0 }, | 163 | { 0x000fc410, 0x000ffff0 }, |
164 | { 0x000fc440, 0x000fffc0 }, | 164 | { 0x000fc440, 0x000fffc0 }, |
165 | { } | 165 | { } |
diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index 29c17617a2ec..2f774acdb551 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c | |||
@@ -219,7 +219,7 @@ static void __exit davicom_exit(void) | |||
219 | module_init(davicom_init); | 219 | module_init(davicom_init); |
220 | module_exit(davicom_exit); | 220 | module_exit(davicom_exit); |
221 | 221 | ||
222 | static struct mdio_device_id davicom_tbl[] = { | 222 | static struct mdio_device_id __maybe_unused davicom_tbl[] = { |
223 | { 0x0181b880, 0x0ffffff0 }, | 223 | { 0x0181b880, 0x0ffffff0 }, |
224 | { 0x0181b8a0, 0x0ffffff0 }, | 224 | { 0x0181b8a0, 0x0ffffff0 }, |
225 | { 0x00181b80, 0x0ffffff0 }, | 225 | { 0x00181b80, 0x0ffffff0 }, |
diff --git a/drivers/net/phy/et1011c.c b/drivers/net/phy/et1011c.c index 13995f52d6af..a8eb19ec3183 100644 --- a/drivers/net/phy/et1011c.c +++ b/drivers/net/phy/et1011c.c | |||
@@ -111,7 +111,7 @@ static void __exit et1011c_exit(void) | |||
111 | module_init(et1011c_init); | 111 | module_init(et1011c_init); |
112 | module_exit(et1011c_exit); | 112 | module_exit(et1011c_exit); |
113 | 113 | ||
114 | static struct mdio_device_id et1011c_tbl[] = { | 114 | static struct mdio_device_id __maybe_unused et1011c_tbl[] = { |
115 | { 0x0282f014, 0xfffffff0 }, | 115 | { 0x0282f014, 0xfffffff0 }, |
116 | { } | 116 | { } |
117 | }; | 117 | }; |
diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index 3f2583f18a39..c1d2d251fe8b 100644 --- a/drivers/net/phy/icplus.c +++ b/drivers/net/phy/icplus.c | |||
@@ -134,7 +134,7 @@ static void __exit ip175c_exit(void) | |||
134 | module_init(ip175c_init); | 134 | module_init(ip175c_init); |
135 | module_exit(ip175c_exit); | 135 | module_exit(ip175c_exit); |
136 | 136 | ||
137 | static struct mdio_device_id icplus_tbl[] = { | 137 | static struct mdio_device_id __maybe_unused icplus_tbl[] = { |
138 | { 0x02430d80, 0x0ffffff0 }, | 138 | { 0x02430d80, 0x0ffffff0 }, |
139 | { } | 139 | { } |
140 | }; | 140 | }; |
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c index 29c39ff85de5..6f6e8b616a62 100644 --- a/drivers/net/phy/lxt.c +++ b/drivers/net/phy/lxt.c | |||
@@ -223,7 +223,7 @@ static void __exit lxt_exit(void) | |||
223 | module_init(lxt_init); | 223 | module_init(lxt_init); |
224 | module_exit(lxt_exit); | 224 | module_exit(lxt_exit); |
225 | 225 | ||
226 | static struct mdio_device_id lxt_tbl[] = { | 226 | static struct mdio_device_id __maybe_unused lxt_tbl[] = { |
227 | { 0x78100000, 0xfffffff0 }, | 227 | { 0x78100000, 0xfffffff0 }, |
228 | { 0x001378e0, 0xfffffff0 }, | 228 | { 0x001378e0, 0xfffffff0 }, |
229 | { 0x00137a10, 0xfffffff0 }, | 229 | { 0x00137a10, 0xfffffff0 }, |
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 0101f2bdf400..ed43c0016c64 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c | |||
@@ -721,7 +721,7 @@ static void __exit marvell_exit(void) | |||
721 | module_init(marvell_init); | 721 | module_init(marvell_init); |
722 | module_exit(marvell_exit); | 722 | module_exit(marvell_exit); |
723 | 723 | ||
724 | static struct mdio_device_id marvell_tbl[] = { | 724 | static struct mdio_device_id __maybe_unused marvell_tbl[] = { |
725 | { 0x01410c60, 0xfffffff0 }, | 725 | { 0x01410c60, 0xfffffff0 }, |
726 | { 0x01410c90, 0xfffffff0 }, | 726 | { 0x01410c90, 0xfffffff0 }, |
727 | { 0x01410cc0, 0xfffffff0 }, | 727 | { 0x01410cc0, 0xfffffff0 }, |
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 8bb7db676a5c..0fd1678bc5a9 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c | |||
@@ -231,7 +231,7 @@ MODULE_DESCRIPTION("Micrel PHY driver"); | |||
231 | MODULE_AUTHOR("David J. Choi"); | 231 | MODULE_AUTHOR("David J. Choi"); |
232 | MODULE_LICENSE("GPL"); | 232 | MODULE_LICENSE("GPL"); |
233 | 233 | ||
234 | static struct mdio_device_id micrel_tbl[] = { | 234 | static struct mdio_device_id __maybe_unused micrel_tbl[] = { |
235 | { PHY_ID_KSZ9021, 0x000fff10 }, | 235 | { PHY_ID_KSZ9021, 0x000fff10 }, |
236 | { PHY_ID_KS8001, 0x00fffff0 }, | 236 | { PHY_ID_KS8001, 0x00fffff0 }, |
237 | { PHY_ID_KS8737, 0x00fffff0 }, | 237 | { PHY_ID_KS8737, 0x00fffff0 }, |
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 | }; |
diff --git a/drivers/net/phy/qsemi.c b/drivers/net/phy/qsemi.c index 6736b23f1b28..fe0d0a15d5e1 100644 --- a/drivers/net/phy/qsemi.c +++ b/drivers/net/phy/qsemi.c | |||
@@ -138,7 +138,7 @@ static void __exit qs6612_exit(void) | |||
138 | module_init(qs6612_init); | 138 | module_init(qs6612_init); |
139 | module_exit(qs6612_exit); | 139 | module_exit(qs6612_exit); |
140 | 140 | ||
141 | static struct mdio_device_id qs6612_tbl[] = { | 141 | static struct mdio_device_id __maybe_unused qs6612_tbl[] = { |
142 | { 0x00181440, 0xfffffff0 }, | 142 | { 0x00181440, 0xfffffff0 }, |
143 | { } | 143 | { } |
144 | }; | 144 | }; |
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index f567c0e1aaa1..a4eae750a414 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c | |||
@@ -79,7 +79,7 @@ static void __exit realtek_exit(void) | |||
79 | module_init(realtek_init); | 79 | module_init(realtek_init); |
80 | module_exit(realtek_exit); | 80 | module_exit(realtek_exit); |
81 | 81 | ||
82 | static struct mdio_device_id realtek_tbl[] = { | 82 | static struct mdio_device_id __maybe_unused realtek_tbl[] = { |
83 | { 0x001cc912, 0x001fffff }, | 83 | { 0x001cc912, 0x001fffff }, |
84 | { } | 84 | { } |
85 | }; | 85 | }; |
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index 78fa988256fc..342505c976d6 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c | |||
@@ -254,7 +254,7 @@ MODULE_LICENSE("GPL"); | |||
254 | module_init(smsc_init); | 254 | module_init(smsc_init); |
255 | module_exit(smsc_exit); | 255 | module_exit(smsc_exit); |
256 | 256 | ||
257 | static struct mdio_device_id smsc_tbl[] = { | 257 | static struct mdio_device_id __maybe_unused smsc_tbl[] = { |
258 | { 0x0007c0a0, 0xfffffff0 }, | 258 | { 0x0007c0a0, 0xfffffff0 }, |
259 | { 0x0007c0b0, 0xfffffff0 }, | 259 | { 0x0007c0b0, 0xfffffff0 }, |
260 | { 0x0007c0c0, 0xfffffff0 }, | 260 | { 0x0007c0c0, 0xfffffff0 }, |
diff --git a/drivers/net/phy/ste10Xp.c b/drivers/net/phy/ste10Xp.c index 72290099e5e1..187a2fa814f2 100644 --- a/drivers/net/phy/ste10Xp.c +++ b/drivers/net/phy/ste10Xp.c | |||
@@ -132,7 +132,7 @@ static void __exit ste10Xp_exit(void) | |||
132 | module_init(ste10Xp_init); | 132 | module_init(ste10Xp_init); |
133 | module_exit(ste10Xp_exit); | 133 | module_exit(ste10Xp_exit); |
134 | 134 | ||
135 | static struct mdio_device_id ste10Xp_tbl[] = { | 135 | static struct mdio_device_id __maybe_unused ste10Xp_tbl[] = { |
136 | { STE101P_PHY_ID, 0xfffffff0 }, | 136 | { STE101P_PHY_ID, 0xfffffff0 }, |
137 | { STE100P_PHY_ID, 0xffffffff }, | 137 | { STE100P_PHY_ID, 0xffffffff }, |
138 | { } | 138 | { } |
diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index 45cce50a2799..5d8f6e17bd55 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c | |||
@@ -192,7 +192,7 @@ static void __exit vsc82xx_exit(void) | |||
192 | module_init(vsc82xx_init); | 192 | module_init(vsc82xx_init); |
193 | module_exit(vsc82xx_exit); | 193 | module_exit(vsc82xx_exit); |
194 | 194 | ||
195 | static struct mdio_device_id vitesse_tbl[] = { | 195 | static struct mdio_device_id __maybe_unused vitesse_tbl[] = { |
196 | { PHY_ID_VSC8244, 0x000fffc0 }, | 196 | { PHY_ID_VSC8244, 0x000fffc0 }, |
197 | { PHY_ID_VSC8221, 0x000ffff0 }, | 197 | { PHY_ID_VSC8221, 0x000ffff0 }, |
198 | { } | 198 | { } |