diff options
author | stephen hemminger <stephen@networkplumber.org> | 2014-01-03 09:19:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-03 20:56:48 -0500 |
commit | 5e419e68a6450da279e8add304629774133576a9 (patch) | |
tree | ee643a65864ba87216a0aba29552275922137062 | |
parent | 8f09898bf02fc24b7a525e9cfc78f38dcdf3a4eb (diff) |
llc: make lock static
The llc_sap_list_lock does not need to be global, only acquired
in core.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/llc.h | 1 | ||||
-rw-r--r-- | net/llc/llc_core.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/net/llc.h b/include/net/llc.h index 68490cbc8a6..e8e61d4fb45 100644 --- a/include/net/llc.h +++ b/include/net/llc.h @@ -93,7 +93,6 @@ struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap, #define LLC_DEST_CONN 2 /* Type 2 goes here */ extern struct list_head llc_sap_list; -extern spinlock_t llc_sap_list_lock; int llc_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev); diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c index e251c0493ac..842851cef69 100644 --- a/net/llc/llc_core.c +++ b/net/llc/llc_core.c @@ -23,7 +23,7 @@ #include <net/llc.h> LIST_HEAD(llc_sap_list); -DEFINE_SPINLOCK(llc_sap_list_lock); +static DEFINE_SPINLOCK(llc_sap_list_lock); /** * llc_sap_alloc - allocates and initializes sap. @@ -159,7 +159,6 @@ module_init(llc_init); module_exit(llc_exit); EXPORT_SYMBOL(llc_sap_list); -EXPORT_SYMBOL(llc_sap_list_lock); EXPORT_SYMBOL(llc_sap_find); EXPORT_SYMBOL(llc_sap_open); EXPORT_SYMBOL(llc_sap_close); |