Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4042987ybg; Fri, 25 Oct 2019 12:29:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG5u3b/zaJVaCj7bId9EIC4skz5LEltSDW1xmGKj4mPqiDARST2+opbL4BhZsUXigsnyeM X-Received: by 2002:a50:9fa4:: with SMTP id c33mr4984739edf.176.1572031798855; Fri, 25 Oct 2019 12:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031798; cv=none; d=google.com; s=arc-20160816; b=kokWflrvKH8h6qthTdL5sqTWJiJ9zS6UAMwHuC44SJ761pvJfUF+iN+0JU0JHyl7jZ D0UnPT7r+EC8gBcMHPaXd7VvwIocIP4Mblb05A7wR+vePYGGThcBurbeyKTHmNKE69Ix aAaRDSVHuLsfHtmHRQBApg4+a8Rv4t2mdACuFIXHZ9/XVXy+qq9PjcrCASiqlQNOkWks vue+c1rvqZAazMSRqO7ZRrTaQ64ycBn8sCBXlj74uneqN+pnQQFd0P50mwbLWVe/xMNo FQx7UFFD/nIL0g7NFMAUDB8k+bbvi9lUQOpew1Rfct4L1GqxNZS9BvIHhTKzWeRBQUhF YYdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=tp8XG+FFlpgf4eg7cljT9CiFWTcJcdRAYtfOfyyJMUY=; b=j9XOA4uW7YDTS3AzoktJmrq15tBgxYKVCew4YXuTN6dW6DfLZljA2+7ZkkQ9YaVbCf tripBVP231aOZAhslh54y9VDuNzDC1VepgxsekLZCvR9whmFYW0D/721bo3CI+lMWsRY OzR2kmI2svcqSnl/ZbzoYQYF5BdWI+ROQfTBAloqOmGovIy5veJexQQTNHB1JVdLBTMf DgvSz1Ig1jMFbBCgW7ninKc/hQgRZTP5Y/4QdGbgTFSJBrLBCY78t9gx/5m9/1cw20Yx SuJOXG6jBlJI7CnQCiPVELN6NKjvo3bIqENcOxNe/4UCbPPzIGWNdq7kFP1awnEK9IOT 6cJg== 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 p22si1712700ejf.278.2019.10.25.12.29.35; Fri, 25 Oct 2019 12:29:58 -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 S2408256AbfJYIcJ (ORCPT + 99 others); Fri, 25 Oct 2019 04:32:09 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:46816 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407824AbfJYIcI (ORCPT ); Fri, 25 Oct 2019 04:32:08 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x9P8W3cS003652, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x9P8W3cS003652 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 Oct 2019 16:32:03 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Fri, 25 Oct 2019 16:32:03 +0800 From: To: CC: Subject: [PATCH 2/2] rtw88: fix sparse warnings for power tracking Date: Fri, 25 Oct 2019 16:32:00 +0800 Message-ID: <20191025083200.20245-3-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025083200.20245-1-yhchuang@realtek.com> References: <20191025083200.20245-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang sparse warnings: drivers/net/wireless/realtek/rtw88/rtw8822b.c:1440:6: sparse: sparse: symbol 'rtw8822b_pwr_track' was not declared. Should it be static? drivers/net/wireless/realtek/rtw88/rtw8822c.c:1008:6: sparse: sparse: symbol 'rtw8822c_pwrtrack_init' was not declared. Should it be static? Fixes: c97ee3e0bea2 ("rtw88: add power tracking support") Reported-by: kbuild test robot Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 +- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index 6f4e7326068c..3ec3e8eb3ecd 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -1492,7 +1492,7 @@ static void rtw8822b_phy_pwrtrack(struct rtw_dev *rtwdev) rtw8822b_do_iqk(rtwdev); } -void rtw8822b_pwr_track(struct rtw_dev *rtwdev) +static void rtw8822b_pwr_track(struct rtw_dev *rtwdev) { struct rtw_efuse *efuse = &rtwdev->efuse; struct rtw_dm_info *dm_info = &rtwdev->dm_info; diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index 97f4c4e1d7e9..04ced3b2a247 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -1006,7 +1006,7 @@ static void rtw8822c_rf_init(struct rtw_dev *rtwdev) rtw8822c_rf_x2_check(rtwdev); } -void rtw8822c_pwrtrack_init(struct rtw_dev *rtwdev) +static void rtw8822c_pwrtrack_init(struct rtw_dev *rtwdev) { struct rtw_dm_info *dm_info = &rtwdev->dm_info; u8 path; -- 2.17.1