diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-02-02 11:49:45 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-02-04 18:26:27 +0300 |
commit | 453a2a82050e918c7770aee55b0b6329fcaddd13 (patch) | |
tree | 3c9055edf3646c257b6a495339e64bd4edf7adda /net/mac80211/debugfs.c | |
parent | 1b198233a39d3c5e493bcb912e3806835dc6db28 (diff) | |
download | linux-453a2a82050e918c7770aee55b0b6329fcaddd13.tar.xz |
mac80211: remove unused macros
Various macros in mac80211 aren't used, remove them. In one
case it's used under ifdef, so ifdef it for the W=2 warning.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220202104617.5172d7fd878e.I2f1fce686a2b71003f083b2566fb09cf16b8165a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r-- | net/mac80211/debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 8dbfe325ee66..f4c9a92f50f9 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -634,8 +634,10 @@ static const struct file_operations stats_ ##name## _ops = { \ .llseek = generic_file_llseek, \ }; +#ifdef CONFIG_MAC80211_DEBUG_COUNTERS #define DEBUGFS_STATS_ADD(name) \ debugfs_create_u32(#name, 0400, statsd, &local->name); +#endif #define DEBUGFS_DEVSTATS_ADD(name) \ debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops); |