Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp263136ybe; Mon, 2 Sep 2019 00:53:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR0XuggMX42DNuto7kBpw0hmj1AwvnIcQITJQJI/ar7JeMJkamdD+ckcZ8bDBQ7K7r6pL/ X-Received: by 2002:a63:791:: with SMTP id 139mr12515556pgh.199.1567410824997; Mon, 02 Sep 2019 00:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567410824; cv=none; d=google.com; s=arc-20160816; b=puyOnkF1y9i75pc5dajfN5SA0Lpc/AGRsopn0xPbLrODGf3Vzj2+yGZmLTlPHKoXqk IrJNhM5sTpuw9rBJm23sxucd83Vq+EEUrgZ6JZaBaqrcKrKkYZ0DTNixJ1SkRpMOe8lj /09lfqY3kUIbNFnfDHFs1AG6IeqXD8paois+XoslouD8q9DRelJHR8AOmpfYuPfd5KUO OAuCZNrlpyxw5sdGMBx+F1+iVFM/8x1rXQBwpD+zJG7176feSNz1Ctq+O4wdwqq5i1ZW E08Cjxj5Ow80uMsxQCpqQj6xLe3mJwQL5HXmjgG8963SFY4iDlCquOkA60ZUbBvguBFe hY/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :message-id; bh=RKWIv96hNtCyBTGwlCDjtJJwOK5Ec0N558UwcCzl19g=; b=DOKX9NJA3s3sbGCDs0wagvA7GlcrU3myusy6yc3flIbVM5dzW/z74h7/e5UtY0oud6 +Mm8eq6mng1XWr4Muz9qPtDAePkwT/q2XCU6SjIyKi4sOFygRTiSgCXoJ0DU9rvrQjJI yUvjpj85EN3NpR8/X7Z9HZMxnGS74RTwlOEZLATcTJwqjrry0egmE4Kg/XHD7JJpSfNx T6YQr/lYFMGhFVoNwSEIVJASbsxNtRpv4pPzdMx7U4kZ5j4Be6V5dEN9Y2Cs5Q4TqsPr pX9QsgmjowcYnzicQZDX7qMbLN6F94jTwg+pVRbvtnXtpZn/F27u+LoShkxa3jKX9gci qOYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si2875834plo.280.2019.09.02.00.53.18; Mon, 02 Sep 2019 00:53:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729965AbfIBHwy (ORCPT + 99 others); Mon, 2 Sep 2019 03:52:54 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:40030 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729408AbfIBHwy (ORCPT ); Mon, 2 Sep 2019 03:52:54 -0400 Received: from [91.156.6.193] (helo=redipa) by farmhouse.coelho.fi with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92) (envelope-from ) id 1i4h8g-0003aF-Cr; Mon, 02 Sep 2019 10:52:38 +0300 Message-ID: From: Luca Coelho To: Krzysztof Wilczynski , Kalle Valo Cc: Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "David S. Miller" , Sara Sharon , Shaul Triebitz , Liad Kaufman , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 02 Sep 2019 10:52:36 +0300 In-Reply-To: <20190831220108.10602-1-kw@linux.com> References: <20190831220108.10602-1-kw@linux.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH] iwlwifi: mvm: Move static keyword to the front of declarations Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, 2019-09-01 at 00:01 +0200, Krzysztof Wilczynski wrote: > Move the static keyword to the front of declarations of > he_if_types_ext_capa_sta and he_iftypes_ext_capa, and > resolve the following compiler warnings that can be seen > when building with warnings enabled (W=1): > > drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:427:1: warning: > ‘static’ is not at beginning of declaration [-Wold-style-declaration] > > drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:434:1: warning: > ‘static’ is not at beginning of declaration [-Wold-style-declaration] > > Signed-off-by: Krzysztof Wilczynski > --- > Related: https://lore.kernel.org/r/20190827233017.GK9987@google.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 d6499763f0dd..937a843fed56 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c > @@ -424,14 +424,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, Thanks for your patch! Though we already have this change in our internal tree (submitted by YueHaibing) and it will reach the mainline soon. -- Cheers, Luca.