From patchwork Thu Mar 16 09:11:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 9627715 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.web.codeaurora.org (Postfix) with ESMTP id 7364F604A9 for ; Thu, 16 Mar 2017 09:11:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65BC32808F for ; Thu, 16 Mar 2017 09:11:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A62928673; Thu, 16 Mar 2017 09:11:56 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC94F2808F for ; Thu, 16 Mar 2017 09:11:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbdCPJLy (ORCPT ); Thu, 16 Mar 2017 05:11:54 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:6473 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357AbdCPJLv (ORCPT ); Thu, 16 Mar 2017 05:11:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1489655510; x=1521191510; h=subject:from:to:cc:date:message-id:mime-version: content-transfer-encoding; bh=M3maNMk2Ec+buHNkAE34OhVheZfo49Xxcv7/FKcxGo0=; b=nCD6bdN2DDzQ4SgMINrJWkF8qExw++S7x/EuGzTrEC5EbyKBzpthVTW8 hG6uWO/nEFaQXMYFDPvaqlyY7ebnO4Ehafv+Mt74mMc3YGnq6p6Kd2qqw NDym2HMmFTiqVaiBquFRPtjSZTDmYze+tZY64H8YimEYMLMttj1Xg4anU c=; X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="366342852" Received: from unknown (HELO Ironmsg03-L.qualcomm.com) ([10.53.140.110]) by wolverine02.qualcomm.com with ESMTP; 16 Mar 2017 02:11:12 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8468"; a="1332476849" X-MGA-submission: =?us-ascii?q?MDGkNoefzJvy+AEBgcGlO1PmQZ/sbE/wSuZP+F?= =?us-ascii?q?5R2gzIQQQGU1DLfdjJgnPOKLS1WXd8emI95kfj4CzDq22CZazIKzQvlg?= =?us-ascii?q?ICWjfvKxYUdNu1vpTIJgo+n2A0my05EFsirwo4Zr17l+75y0PuASGJPB?= =?us-ascii?q?vj?= Received: from nasanexm01e.na.qualcomm.com ([10.85.0.31]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 16 Mar 2017 02:11:12 -0700 Received: from euamsexm01a.eu.qualcomm.com (10.251.127.40) by NASANEXM01E.na.qualcomm.com (10.85.0.31) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 16 Mar 2017 02:11:11 -0700 Received: from potku.adurom.net (10.80.80.8) by euamsexm01a.eu.qualcomm.com (10.251.127.40) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 16 Mar 2017 10:11:06 +0100 Subject: [PATCH] ath10k: fix warnings from an earlier commit From: Kalle Valo To: CC: Date: Thu, 16 Mar 2017 11:11:02 +0200 Message-ID: <148965546273.3007.5273967631982279383.stgit@potku.adurom.net> User-Agent: StGit/0.17.1-17-ge4e0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01G.na.qualcomm.com (10.85.0.33) To euamsexm01a.eu.qualcomm.com (10.251.127.40) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I failed to notice that commit 523f6701dbab ("ath10k: update available channel list for 5G radio") added two new warnings: drivers/net/wireless/ath/ath10k/mac.c:3129:6: warning: symbol 'ath10k_mac_update_channel_list' was not declared. Should it be static? drivers/net/wireless/ath/ath10k/mac.c:3170: Alignment should match open parenthesis Fix those. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/mac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index a25f0ec15cf8..d60086cdc584 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3126,8 +3126,8 @@ static void ath10k_regd_update(struct ath10k *ar) ath10k_warn(ar, "failed to set pdev regdomain: %d\n", ret); } -void ath10k_mac_update_channel_list(struct ath10k *ar, - struct ieee80211_supported_band *band) +static void ath10k_mac_update_channel_list(struct ath10k *ar, + struct ieee80211_supported_band *band) { int i; @@ -3167,7 +3167,7 @@ static void ath10k_reg_notifier(struct wiphy *wiphy, if (ar->phy_capability & WHAL_WLAN_11A_CAPABILITY) ath10k_mac_update_channel_list(ar, - ar->hw->wiphy->bands[NL80211_BAND_5GHZ]); + ar->hw->wiphy->bands[NL80211_BAND_5GHZ]); } /***************/