Make skb_total_counter and skb_refs_counter static
authorPavel Roskin <proski@gnu.org>
Tue, 12 Nov 2013 21:53:27 +0000 (16:53 -0500)
committerPavel Roskin <proski@gnu.org>
Tue, 12 Nov 2013 22:01:27 +0000 (17:01 -0500)
Both have exported accessor functions, so they should not be accessible
directly.

net80211/ieee80211_skb.c
net80211/ieee80211_skb.h

index 13701d44b0a81063de5b4d75facd36f1c909abd3..20bc2a7e1dffc0881fcff47cba0305cd55c0497c 100644 (file)
 #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
 
 /*******************************************************************************
index e80d8f883eb804f15838768531b59e2b49044c43..d9992f9a013499800717cc7755abdb6ae5131980 100644 (file)
 #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
  ******************************************************************************/