From patchwork Mon Jun 17 16:32:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 10999767 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F33814E5 for ; Mon, 17 Jun 2019 16:33:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F4B2288A0 for ; Mon, 17 Jun 2019 16:33:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 734DC288E5; Mon, 17 Jun 2019 16:33:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A3562288A0 for ; Mon, 17 Jun 2019 16:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nVcnvKZradULKjSzTDQMivrJymIXSBUOiE+NvbUvIsM=; b=BomG7NbdoZOWLV alhM29GcYqkIsi335Fafg6JaBYVaZLBExkxw9dUORrGIOmfecOY2Rp6Uvl+cHIpWv0+zFOPykWl6z Zbn4x+1wi6DPEgwUvoKBjfna0eLYPVWJTZyuybODluU8NSVk4WfPqp2W5H6jhmb4MfFvv6VaFxm6A 4wU2cq4LAYRiVuTSaDQXz0+pa61jEdx46iXyifN6TAvXXYFdjkldqOWP024/kaB7eqvZF9X5Pg98o 2Pa7zNIdeIMZ/OjrO2zGxUYWZCA/yvbnWRk8/9SlKm0ZKbHbgRkXoupvx/eW9m9pvWhRHCt/8rliJ h2Qe3Qmt9yqCWwGoitEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcuZ9-0005pJ-Ov; Mon, 17 Jun 2019 16:33:07 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcuZ7-0005nx-GR for ath11k@lists.infradead.org; Mon, 17 Jun 2019 16:33:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8B0E260F3D; Mon, 17 Jun 2019 16:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560789184; bh=klJ6od96N7bpOtWTOjbZzGtPlL1QBzjHQKAJ+iJ3r5M=; h=From:To:Subject:Date:From; b=Nvn6JE4CP+mm1/PP7SkHT4c64YQHXPCWgrZlhLx3WLzzvzRUhp+qzTHNRZt7aeRA1 eiovUXoKgANcnt2xuEGyHRtkPtcOnl7vGuVwKgT1pybu9fxYrfjHqh2SMIzFyV4nBk D6WIxUGw+O8uG9PJZJdX5hNjnnW4IBwXAdeJmpk4= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E718F60C60 for ; Mon, 17 Jun 2019 16:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560789183; bh=klJ6od96N7bpOtWTOjbZzGtPlL1QBzjHQKAJ+iJ3r5M=; h=From:To:Subject:Date:From; b=XOsN3MP0XR++M7wx7XGSXurshOy8GMeNFVWhQ6op925BcK8WpgF6bxVBUhvFH3fBt W4AXmjlptwJ4gNXjp/972C4vUbsI4ZBXa3GjuOw4eW37stn7EAsp0A5Yy26Xe4HRWP XHCxMqyLjpkQnjpB78gOcGzuf3PEWCHHWff4NudA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E718F60C60 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 1/5] ath11k: 'static' is not at beginning of declaration [-Wold-style-declaration] Date: Mon, 17 Jun 2019 19:32:55 +0300 Message-Id: <1560789179-3857-1-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_093305_562296_24A91923 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix gcc W=1 warnings: drivers/net/wireless/ath/ath11k/mac.c:5375:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5380:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5386:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5392:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/mac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 919668967ef6..ab71e121e107 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5372,24 +5372,24 @@ static int ath11k_mac_setup_channels_rates(struct ath11k *ar, return 0; } -const static u8 ath11k_if_types_ext_capa[] = { +static const u8 ath11k_if_types_ext_capa[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, }; -const static u8 ath11k_if_types_ext_capa_sta[] = { +static const u8 ath11k_if_types_ext_capa_sta[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT, }; -const static u8 ath11k_if_types_ext_capa_ap[] = { +static const u8 ath11k_if_types_ext_capa_ap[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT, }; -const static struct wiphy_iftype_ext_capab ath11k_iftypes_ext_capa[] = { +static const struct wiphy_iftype_ext_capab ath11k_iftypes_ext_capa[] = { { .extended_capabilities = ath11k_if_types_ext_capa, .extended_capabilities_mask = ath11k_if_types_ext_capa,