[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191012104114.21356-1-yuehaibing@huawei.com>
Date: Sat, 12 Oct 2019 18:41:14 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <johannes.berg@...el.com>, <emmanuel.grumbach@...el.com>,
<luciano.coelho@...el.com>, <linuxwifi@...el.com>,
<kvalo@...eaurora.org>, <davem@...emloft.net>,
<sara.sharon@...el.com>, <shahar.s.matityahu@...el.com>,
<ilan.peer@...el.com>, <liad.kaufman@...el.com>
CC: <linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH] iwlwifi: mvm: Move static keyword to the front of declarations
gcc warn about this:
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:342:1:
warning: static is not at beginning of declaration [-Wold-style-declaration]
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:349:1:
warning: static is not at beginning of declaration [-Wold-style-declaration]
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
index d31f96c..0358c67 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
@@ -339,14 +339,14 @@ int iwl_mvm_init_fw_regd(struct iwl_mvm *mvm)
return ret;
}
-const static u8 he_if_types_ext_capa_sta[] = {
+static const u8 he_if_types_ext_capa_sta[] = {
[0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING,
[2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT,
[7] = WLAN_EXT_CAPA8_OPMODE_NOTIF,
[9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT,
};
-const static struct wiphy_iftype_ext_capab he_iftypes_ext_capa[] = {
+static const struct wiphy_iftype_ext_capab he_iftypes_ext_capa[] = {
{
.iftype = NL80211_IFTYPE_STATION,
.extended_capabilities = he_if_types_ext_capa_sta,
--
2.7.4
Powered by blists - more mailing lists