Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4044111ybg; Fri, 25 Oct 2019 12:30:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxirMV2zhISWUjKr9Kz5xCK9HkomRjK4LWsns1iqdhxU3dZiSHZnY/FrA0/P3HPGuIi97j X-Received: by 2002:a50:f70d:: with SMTP id g13mr5935946edn.172.1572031852474; Fri, 25 Oct 2019 12:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031852; cv=none; d=google.com; s=arc-20160816; b=iasJj56oKH/UEgSRVkn+7YqxkgEK/nqEezZm1JRiPNJ9E39Wv4Zxc4lSTlLICjOFma 38EC1OFhiNoEAOut8eaGX/1X3/paGS3tGXZ3gT9hNiJeMrnvKYYoGRRrMofZwZ/6xZVP TS/CJw88YiZStQKnicpQcsW5EGId4JbvN5QTcrz4TSEGy9CWlklsEB059brbYh/rLuqx 5ceW0VfXli9K00VQUOiQy6KGBjTYFbN3uOGwFv8uyBbzyUoHU1u06hG82Q2w/38OnCt2 6+6Rf6/AlqGWD38IcndM5tefwb+laQvWJc6nZADd3obZghwXx/nVY/LYeVlnthoSwtzW Am+w== 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=spK2QNgEcFTLsJaLtBAxYwwMIAuHYOMGW1VAyXmQ5z0=; b=MNSdFIrMx9oJ/O9ktzs1MSxA26BcyUOZDQXNdmDuTBrdoGyG+bvns+3kPd6YvoGcDE OeyiRQHEa2wmWN71XroOwrHx3WiO0G2BkyfZJ27N2YyPdV+hsjfQ8wMs0Ij6jn4VijEG ZO1e10ns/CWUM2mV+OIuE11gJimPajz1amlntkOtRxd59nggwt3b9NkJTu8W/kfaf0nI 499H8FtF+IwwhCo+SOKCSNFNR1ljoVDwVZjl9Fy10Vl5cGIBU4pVfZww6rNGhW+zx+Sk BFqVXzAEMYUJgfetuLMyprpTfRWtAqVgfxKx+PpLQgHycfuZD/rRrekYt3jRMHDxe6l+ KB6g== 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 17si1700828ejt.403.2019.10.25.12.30.28; Fri, 25 Oct 2019 12:30:52 -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 S2408286AbfJYIcI (ORCPT + 99 others); Fri, 25 Oct 2019 04:32:08 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:46818 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407828AbfJYIcI (ORCPT ); Fri, 25 Oct 2019 04:32:08 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x9P8W2Ht003648, 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 x9P8W2Ht003648 (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:02 +0800 From: To: CC: Subject: [PATCH 1/2] rtw88: fix sparse warnings for DPK Date: Fri, 25 Oct 2019 16:31:59 +0800 Message-ID: <20191025083200.20245-2-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/rtw8822c.c:2871:6: sparse: sparse: symbol 'rtw8822c_dpk_cal_coef1' was not declared. Should it be static? drivers/net/wireless/realtek/rtw88/rtw8822c.c:3112:6: sparse: sparse: symbol 'rtw8822c_dpk_track' was not declared. Should it be static? Fixes: 5227c2ee453d ("rtw88: 8822c: add SW DPK support") Reported-by: kbuild test robot Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index b77905196ffb..97f4c4e1d7e9 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -2970,7 +2970,7 @@ static void rtw8822c_dpk_cal_gs(struct rtw_dev *rtwdev, u8 path) dpk_info->dpk_gs[path] = tmp_gs; } -void rtw8822c_dpk_cal_coef1(struct rtw_dev *rtwdev) +static void rtw8822c_dpk_cal_coef1(struct rtw_dev *rtwdev) { struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; u32 offset[DPK_RF_PATH_NUM] = {0, 0x58}; @@ -3211,7 +3211,7 @@ static void rtw8822c_phy_calibration(struct rtw_dev *rtwdev) rtw8822c_do_dpk(rtwdev); } -void rtw8822c_dpk_track(struct rtw_dev *rtwdev) +static void rtw8822c_dpk_track(struct rtw_dev *rtwdev) { struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info; u8 path; -- 2.17.1