summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmos Waterland <apw@us.ibm.com>2005-09-24 16:53:16 -0700
committerDavid S. Miller <davem@davemloft.net>2005-09-24 16:53:16 -0700
commit45fc3b11f1d419ed6c636e5ca84472d9805f520e (patch)
tree77e836734bb3339fe0aad77dadc24075e1eca379
parentd67b24c40f81823abe5c1eb808bba1038969142b (diff)
downloadlinux-3.10-45fc3b11f1d419ed6c636e5ca84472d9805f520e.tar.gz
linux-3.10-45fc3b11f1d419ed6c636e5ca84472d9805f520e.tar.bz2
linux-3.10-45fc3b11f1d419ed6c636e5ca84472d9805f520e.zip
[NET]: Protect neigh_stat_seq_fops by CONFIG_PROC_FS
From: Amos Waterland <apw@us.ibm.com> If CONFIG_PROC_FS is not selected, the compiler emits this warning: net/core/neighbour.c:64: warning: `neigh_stat_seq_fops' defined but not used Which is correct, because neigh_stat_seq_fops is in fact only initialized and used by code that is protected by CONFIG_PROC_FS. So this patch fixes that up. Signed-off-by: Amos Waterland <apw@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/neighbour.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 39fc55edf69..5f160082aaf 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -61,7 +61,9 @@ static int pneigh_ifdown(struct neigh_table *tbl, struct net_device *dev);
void neigh_changeaddr(struct neigh_table *tbl, struct net_device *dev);
static struct neigh_table *neigh_tables;
+#ifdef CONFIG_PROC_FS
static struct file_operations neigh_stat_seq_fops;
+#endif
/*
Neighbour hash table buckets are protected with rwlock tbl->lock.