From 3e8afe45d010cb1f7f3f7fd5a54591c6a1915ff6 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 12 Nov 2013 16:53:27 -0500 Subject: [PATCH] Make skb_total_counter and skb_refs_counter static Both have exported accessor functions, so they should not be accessible directly. --- net80211/ieee80211_skb.c | 6 ++---- net80211/ieee80211_skb.h | 13 ------------- 2 files changed, 2 insertions(+), 17 deletions(-) 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 ******************************************************************************/ -- 2.35.1