diff mbox series

[v3,1/4] mt76: mt7915: add missing CONFIG_MAC80211_DEBUGFS

Message ID 2863c9a7e14c791202738597184f4a6b75d5bc07.1592158312.git.ryder.lee@mediatek.com (mailing list archive)
State Accepted
Delegated to: Felix Fietkau
Headers show
Series mt7915: add MU-MIMO support | expand

Commit Message

Ryder Lee June 14, 2020, 6:23 p.m. UTC
Add CONFIG_MAC80211_DEBUGFS to fix a reported warning.

Fixes: ec9742a ("mt76: mt7915: add .sta_add_debugfs support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kalle Valo June 15, 2020, 3:54 p.m. UTC | #1
Ryder Lee <ryder.lee@mediatek.com> writes:

> Add CONFIG_MAC80211_DEBUGFS to fix a reported warning.
>
> Fixes: ec9742a ("mt76: mt7915: add .sta_add_debugfs support")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>

Same comments as in v2:

Fixes: ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support")

Should this go to v5.8?
Ryder Lee June 15, 2020, 5:13 p.m. UTC | #2
On Mon, 2020-06-15 at 18:54 +0300, Kalle Valo wrote:
> Ryder Lee <ryder.lee@mediatek.com> writes:
> 
> > Add CONFIG_MAC80211_DEBUGFS to fix a reported warning.
> >
> > Fixes: ec9742a ("mt76: mt7915: add .sta_add_debugfs support")
> > Reported-by: kernel test robot <lkp@intel.com>
> > Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> 
> Same comments as in v2:
> 
> Fixes: ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support")
> 
> Should this go to v5.8?
> 

Yep:)

Ryder
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
index 5278bee812f1..7e48f56b5b08 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
@@ -384,6 +384,7 @@  int mt7915_init_debugfs(struct mt7915_dev *dev)
 	return 0;
 }
 
+#ifdef CONFIG_MAC80211_DEBUGFS
 /** per-station debugfs **/
 
 /* usage: <tx mode> <ldpc> <stbc> <bw> <gi> <nss> <mcs> */
@@ -461,3 +462,4 @@  void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	debugfs_create_file("fixed_rate", 0600, dir, sta, &fops_fixed_rate);
 	debugfs_create_file("stats", 0400, dir, sta, &fops_sta_stats);
 }
+#endif