Skip to content

Commit

Permalink
llc: make lock static
Browse files Browse the repository at this point in the history
The llc_sap_list_lock does not need to be global, only acquired
in core.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
shemminger authored and davem330 committed Jan 4, 2014
1 parent 8f09898 commit 5e419e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion include/net/llc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions net/llc/llc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5e419e6

Please sign in to comment.