Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
5e419e68 8f09898b

+1 -3
-1
include/net/llc.h
··· 93 93 #define LLC_DEST_CONN 2 /* Type 2 goes here */ 94 94 95 95 extern struct list_head llc_sap_list; 96 - extern spinlock_t llc_sap_list_lock; 97 96 98 97 int llc_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, 99 98 struct net_device *orig_dev);
+1 -2
net/llc/llc_core.c
··· 23 23 #include <net/llc.h> 24 24 25 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 29 * llc_sap_alloc - allocates and initializes sap. ··· 159 159 module_exit(llc_exit); 160 160 161 161 EXPORT_SYMBOL(llc_sap_list); 162 - EXPORT_SYMBOL(llc_sap_list_lock); 163 162 EXPORT_SYMBOL(llc_sap_find); 164 163 EXPORT_SYMBOL(llc_sap_open); 165 164 EXPORT_SYMBOL(llc_sap_close);