diff options
| author | stephen hemminger <stephen@networkplumber.org> | 2014-01-03 12:19:51 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-01-03 20:56:48 -0500 |
| commit | 5e419e68a6450da279e8add304629774133576a9 (patch) | |
| tree | ee643a65864ba87216a0aba29552275922137062 /net/llc | |
| 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>
Diffstat (limited to 'net/llc')
| -rw-r--r-- | net/llc/llc_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c index e251c0493ac0..842851cef698 100644 --- a/net/llc/llc_core.c +++ b/net/llc/llc_core.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <net/llc.h> | 23 | #include <net/llc.h> |
| 24 | 24 | ||
| 25 | LIST_HEAD(llc_sap_list); | 25 | LIST_HEAD(llc_sap_list); |
| 26 | DEFINE_SPINLOCK(llc_sap_list_lock); | 26 | static DEFINE_SPINLOCK(llc_sap_list_lock); |
| 27 | 27 | ||
| 28 | /** | 28 | /** |
| 29 | * llc_sap_alloc - allocates and initializes sap. | 29 | * llc_sap_alloc - allocates and initializes sap. |
| @@ -159,7 +159,6 @@ module_init(llc_init); | |||
| 159 | module_exit(llc_exit); | 159 | module_exit(llc_exit); |
| 160 | 160 | ||
| 161 | EXPORT_SYMBOL(llc_sap_list); | 161 | EXPORT_SYMBOL(llc_sap_list); |
| 162 | EXPORT_SYMBOL(llc_sap_list_lock); | ||
| 163 | EXPORT_SYMBOL(llc_sap_find); | 162 | EXPORT_SYMBOL(llc_sap_find); |
| 164 | EXPORT_SYMBOL(llc_sap_open); | 163 | EXPORT_SYMBOL(llc_sap_open); |
| 165 | EXPORT_SYMBOL(llc_sap_close); | 164 | EXPORT_SYMBOL(llc_sap_close); |
