From: Pavel Roskin Date: Tue, 12 Nov 2013 21:53:27 +0000 (-0500) Subject: Make skb_total_counter and skb_refs_counter static X-Git-Url: http://git.ozo.com/?p=madwifi%2F.git;a=commitdiff_plain;h=3e8afe45d010cb1f7f3f7fd5a54591c6a1915ff6 Make skb_total_counter and skb_refs_counter static Both have exported accessor functions, so they should not be accessible directly. --- diff --git a/net80211/ieee80211_skb.c b/net80211/ieee80211_skb.c index 13701d4..20bc2a7 100644 --- a/net80211/ieee80211_skb.c +++ b/net80211/ieee80211_skb.c @@ -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 /******************************************************************************* diff --git a/net80211/ieee80211_skb.h b/net80211/ieee80211_skb.h index e80d8f8..d9992f9 100644 --- a/net80211/ieee80211_skb.h +++ b/net80211/ieee80211_skb.h @@ -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 ******************************************************************************/