Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp675952ybz; Sat, 25 Apr 2020 01:55:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIsiarpcWSzt4+N5hSfxfJePORxnXH8/x9bsRNm91UtwrKqyvfTsiEVkKBGLLyiFJLu6m7Y X-Received: by 2002:aa7:c1ca:: with SMTP id d10mr11070161edp.152.1587804914720; Sat, 25 Apr 2020 01:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587804914; cv=none; d=google.com; s=arc-20160816; b=OQJDFg1gXSyJy29viivY+3PB7acmnKVwT1q4p0dpuR+UIdpD69wGlMQxnJYZ3QgSPS 0p5FDD+0BrXtJPaxa6pt2CC5Dpmm1kLj+/xCW2wviJ86WLsnGyfUpX8nJrVO95RIGUh3 JJ0WH8iGmjzt8LtMhjsstDu3x2ecZXqzRNUFXj3dT2B+MuqEaoBi3uhlqGAkxDQjkpCp RwWqDO4TpDSauYesIXwQdUwFcfCHKPlBFkuJNQ2GggE5QnQHmgOFlr7zNOUCFPdmG84X 2zUjttQC1IBbD034BVzKsSyANL66V/fJlR/4wttbrCQ1l+599377InmSL/9l1K6GG7d+ 3SAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XtvrFkB6/P/dt1U+wUVJqDLVdfZYDFKBFixOvA1etvM=; b=t93AyTxSejyg8dpJLHHsAj7/41QXzE8Gq35CBJGuJ5fzzDWoe/WgBbKZb+YqAuAR9z 972lDsVjgEggxZBtjoeKE4ydweF2DLGgmSgo7iEUbmxAbNbfL/4Hwp9VrvXa4143M214 Yxdfg8i3dgYkJtRsoLjY18nnKTmIjyo61aiUrmRHaGqCEgayzZ74JxxCw3HRswa6iUSD y/h/b9X+9KnnLLnbJj7OlXPylfqEBLlDx+k5g9Xp5YbQJ3hbQnzVRnXwWbitRPEXOh/N A1tXHJSopNEI/cymqHjsCi3sn72h2MVv6iOlaBmKUMFnQOv6xuj0czkC2rH5igTwEDiK ZqSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si4335351edv.157.2020.04.25.01.54.44; Sat, 25 Apr 2020 01:55:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbgDYIxt (ORCPT + 99 others); Sat, 25 Apr 2020 04:53:49 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56048 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725837AbgDYIxt (ORCPT ); Sat, 25 Apr 2020 04:53:49 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 64120748827E0978C76B; Sat, 25 Apr 2020 16:53:47 +0800 (CST) Received: from huawei.com (10.67.174.156) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sat, 25 Apr 2020 16:53:40 +0800 From: ChenTao To: , CC: , , , Subject: [PATCH] rtw88: mac: Make some functions static Date: Sat, 25 Apr 2020 16:53:04 +0800 Message-ID: <20200425085304.153077-1-chentao107@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.156] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following warning: vers/net/wireless/realtek/rtw88/mac.c:699:5: warning: symbol '__rtw_download_firmware' was not declared. Should it be static? drivers/net/wireless/realtek/rtw88/mac.c:863:5: warning: symbol '__rtw_download_firmware_legacy' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: ChenTao --- drivers/net/wireless/realtek/rtw88/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/mac.c b/drivers/net/wireless/realtek/rtw88/mac.c index 645207a01525..f5bf5bab9454 100644 --- a/drivers/net/wireless/realtek/rtw88/mac.c +++ b/drivers/net/wireless/realtek/rtw88/mac.c @@ -696,7 +696,7 @@ static void download_firmware_end_flow(struct rtw_dev *rtwdev) rtw_write16(rtwdev, REG_MCUFW_CTRL, fw_ctrl); } -int __rtw_download_firmware(struct rtw_dev *rtwdev, struct rtw_fw_state *fw) +static int __rtw_download_firmware(struct rtw_dev *rtwdev, struct rtw_fw_state *fw) { struct rtw_backup_info bckp[DLFW_RESTORE_REG_NUM]; const u8 *data = fw->firmware->data; @@ -860,7 +860,7 @@ static int download_firmware_validate_legacy(struct rtw_dev *rtwdev) return -EINVAL; } -int __rtw_download_firmware_legacy(struct rtw_dev *rtwdev, struct rtw_fw_state *fw) +static int __rtw_download_firmware_legacy(struct rtw_dev *rtwdev, struct rtw_fw_state *fw) { int ret = 0; -- 2.22.0