diff mbox series

[wireless-drivers-next,3/5] wilc1000: fix compiler warning for 'wowlan_support' unused variable

Message ID 20200710051826.3267-4-ajay.kathat@microchip.com (mailing list archive)
State Accepted
Commit 9bdcbdafc659d44962291a3a6b8b01511f92a0a1
Delegated to: Kalle Valo
Headers show
Series wilc1000: udpated MAINTAINERS & minor pending patches | expand

Commit Message

Ajay Singh July 10, 2020, 5:18 a.m. UTC
From: Ajay Singh <ajay.kathat@microchip.com>

Avoid below reported warning found when 'CONFIG_PM' config is
undefined.

'warning: unused variable 'wowlan_support' [-Wunused-const-variable]'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
---
 drivers/net/wireless/microchip/wilc1000/cfg80211.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c
index b6065a0d660f..c1ac1d84790f 100644
--- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c
+++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c
@@ -46,9 +46,11 @@  static const struct ieee80211_txrx_stypes
 	}
 };
 
+#ifdef CONFIG_PM
 static const struct wiphy_wowlan_support wowlan_support = {
 	.flags = WIPHY_WOWLAN_ANY
 };
+#endif
 
 struct wilc_p2p_mgmt_data {
 	int size;