linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <Ajay.Kathat@microchip.com>
To: <linux-wireless@vger.kernel.org>
Cc: <Claudiu.Beznea@microchip.com>, <Nicolas.Ferre@microchip.com>,
	<Sripad.Balwadgi@microchip.com>, <Ajay.Kathat@microchip.com>
Subject: [PATCH wireless-drivers-next 3/5] wilc1000: fix compiler warning for 'wowlan_support' unused variable
Date: Fri, 10 Jul 2020 05:18:30 +0000	[thread overview]
Message-ID: <20200710051826.3267-4-ajay.kathat@microchip.com> (raw)
In-Reply-To: <20200710051826.3267-1-ajay.kathat@microchip.com>

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 --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;
-- 
2.24.0

  parent reply	other threads:[~2020-07-10  5:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  5:18 [PATCH wireless-drivers-next 0/5] wilc1000: udpated MAINTAINERS & minor pending patches Ajay.Kathat
2020-07-10  5:18 ` [PATCH wireless-drivers-next 1/5] MAINTAINERS: net: wilc1000: Update entry Ajay.Kathat
2020-07-14 17:53   ` Kalle Valo
2020-07-10  5:18 ` Ajay.Kathat [this message]
2020-07-10  5:18 ` [PATCH wireless-drivers-next 2/5] wilc1000: use strlcpy to avoid 'stringop-truncation' warning Ajay.Kathat
2020-07-10  5:18 ` [PATCH wireless-drivers-next 5/5] wilc1000: use API version number info along with firmware filename Ajay.Kathat
2020-07-10  5:18 ` [PATCH wireless-drivers-next 4/5] wilc1000: use unified single wilc1000 FW binary Ajay.Kathat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200710051826.3267-4-ajay.kathat@microchip.com \
    --to=ajay.kathat@microchip.com \
    --cc=Claudiu.Beznea@microchip.com \
    --cc=Nicolas.Ferre@microchip.com \
    --cc=Sripad.Balwadgi@microchip.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).