mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
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:
parent
27463c4ea4
commit
3e8afe45d0
@ -84,12 +84,10 @@
|
|||||||
#undef skb_unshare
|
#undef skb_unshare
|
||||||
#undef vlan_hwaccel_rx
|
#undef vlan_hwaccel_rx
|
||||||
|
|
||||||
atomic_t skb_total_counter = ATOMIC_INIT(0);
|
static atomic_t skb_total_counter = ATOMIC_INIT(0);
|
||||||
EXPORT_SYMBOL(skb_total_counter);
|
|
||||||
|
|
||||||
#ifdef IEEE80211_DEBUG_REFCNT
|
#ifdef IEEE80211_DEBUG_REFCNT
|
||||||
atomic_t skb_refs_counter = ATOMIC_INIT(0);
|
static atomic_t skb_refs_counter = ATOMIC_INIT(0);
|
||||||
EXPORT_SYMBOL(skb_refs_counter);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
@ -29,19 +29,6 @@
|
|||||||
#ifndef _NET80211_IEEE80211_SKB_H_
|
#ifndef _NET80211_IEEE80211_SKB_H_
|
||||||
#define _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
|
* Public API
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user