Make skb_total_counter and skb_refs_counter static

Both have exported accessor functions, so they should not be accessible
directly.
This commit is contained in:
Pavel Roskin 2013-11-12 16:53:27 -05:00
parent 27463c4ea4
commit 3e8afe45d0
2 changed files with 2 additions and 17 deletions

View File

@ -84,12 +84,10 @@
#undef skb_unshare
#undef vlan_hwaccel_rx
atomic_t skb_total_counter = ATOMIC_INIT(0);
EXPORT_SYMBOL(skb_total_counter);
static atomic_t skb_total_counter = ATOMIC_INIT(0);
#ifdef IEEE80211_DEBUG_REFCNT
atomic_t skb_refs_counter = ATOMIC_INIT(0);
EXPORT_SYMBOL(skb_refs_counter);
static atomic_t skb_refs_counter = ATOMIC_INIT(0);
#endif
/*******************************************************************************

View File

@ -29,19 +29,6 @@
#ifndef _NET80211_IEEE80211_SKB_H_
#define _NET80211_IEEE80211_SKB_H_
/*******************************************************************************
* Globals
******************************************************************************/
#ifdef IEEE80211_DEBUG_REFCNT
/* Count of currently tracked skbs */
extern atomic_t skb_total_counter;
/* Count of currently tracked skbs' references */
extern atomic_t skb_refs_counter;
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
/*******************************************************************************
* Public API
******************************************************************************/