netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: SMSC: fix unused warnings when built into kernel
@ 2010-08-06  6:27 Mike Frysinger
  2010-08-06  6:43 ` Changli Gao
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2010-08-06  6:27 UTC (permalink / raw)
  To: netdev, David S. Miller

If the SMSC phy is not built as a module, we get the warning:
	drivers/net/phy/smsc.c:257: warning: 'smsc_tbl' defined but not used

So mark the structure as maybe unused to avoid this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/net/phy/smsc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index 78fa988..11944ef 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -254,7 +254,7 @@ MODULE_LICENSE("GPL");
 module_init(smsc_init);
 module_exit(smsc_exit);
 
-static struct mdio_device_id smsc_tbl[] = {
+static __maybe_unused struct mdio_device_id smsc_tbl[] = {
 	{ 0x0007c0a0, 0xfffffff0 },
 	{ 0x0007c0b0, 0xfffffff0 },
 	{ 0x0007c0c0, 0xfffffff0 },
-- 
1.7.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-08  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-06  6:27 [PATCH] phy: SMSC: fix unused warnings when built into kernel Mike Frysinger
2010-08-06  6:43 ` Changli Gao
2010-08-06  7:37   ` Mike Frysinger
2010-08-06  7:37   ` Mike Frysinger
2010-08-06 12:57   ` Ben Hutchings
2010-08-08  6:08     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).