Move static function from header file to only c file it's used in. Signed-off-by: Omer El Idrissi --- net/mac80211/debugfs.c | 15 +++++++++++++++ net/mac80211/driver-ops.h | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index e38631d7cfb4..cce8aab1dfa6 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -589,6 +589,21 @@ DEBUGFS_READONLY_FILE_OPS(misc); /* statistics stuff */ +static inline int drv_get_stats(struct ieee80211_local *local, + struct ieee80211_low_level_stats *stats) +{ + int ret = -EOPNOTSUPP; + + might_sleep(); + lockdep_assert_wiphy(local->hw.wiphy); + + if (local->ops->get_stats) + ret = local->ops->get_stats(&local->hw, stats); + trace_drv_get_stats(local, stats, ret); + + return ret; +} + static ssize_t format_devstat_counter(struct ieee80211_local *local, char __user *userbuf, size_t count, loff_t *ppos, diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index f1c0b87fddd5..49654958531d 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -364,21 +364,6 @@ static inline void drv_sw_scan_complete(struct ieee80211_local *local, trace_drv_return_void(local); } -static inline int drv_get_stats(struct ieee80211_local *local, - struct ieee80211_low_level_stats *stats) -{ - int ret = -EOPNOTSUPP; - - might_sleep(); - lockdep_assert_wiphy(local->hw.wiphy); - - if (local->ops->get_stats) - ret = local->ops->get_stats(&local->hw, stats); - trace_drv_get_stats(local, stats, ret); - - return ret; -} - static inline void drv_get_key_seq(struct ieee80211_local *local, struct ieee80211_key *key, struct ieee80211_key_seq *seq) -- 2.53.0