netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NET: Mark snmp4_icmp_list[] as being unused
@ 2007-10-25 13:36 David Howells
  2007-10-25 22:10 ` David Stevens
  0 siblings, 1 reply; 5+ messages in thread
From: David Howells @ 2007-10-25 13:36 UTC (permalink / raw)
  To: netdev; +Cc: dhowells

Mark snmp4_icmp_list[] as being unused to avoid the warning it would otherwise
incur.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 net/ipv4/proc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index fd16cb8..1c0854d 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -121,7 +121,8 @@ static const struct snmp_mib snmp4_ipextstats_list[] = {
 	SNMP_MIB_SENTINEL
 };
 
-static const struct snmp_mib snmp4_icmp_list[] = {
+static __attribute__((unused))
+const struct snmp_mib snmp4_icmp_list[] = {
 	SNMP_MIB_ITEM("InMsgs", ICMP_MIB_INMSGS),
 	SNMP_MIB_ITEM("InErrors", ICMP_MIB_INERRORS),
 	SNMP_MIB_ITEM("OutMsgs", ICMP_MIB_OUTMSGS),


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

end of thread, other threads:[~2007-10-26  1:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 13:36 [PATCH] NET: Mark snmp4_icmp_list[] as being unused David Howells
2007-10-25 22:10 ` David Stevens
2007-10-25 23:05   ` David Howells
2007-10-26  1:27     ` David Stevens
2007-10-26  1:40       ` 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).