Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3868416ybl; Mon, 12 Aug 2019 07:43:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqypIJJawCevZ3ukyYeidtKpQWrRH+NrsCSEjltWx0IMCdAkeqCft5PbYhY11ULHIjo4l85F X-Received: by 2002:a17:902:a409:: with SMTP id p9mr33507433plq.218.1565620981415; Mon, 12 Aug 2019 07:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565620981; cv=none; d=google.com; s=arc-20160816; b=ntoyvhzBW2Twxl8JdB7fAEZa21/HqPwdVt5D7NtyiPtXc0hoBscBMvUB/Ns5pTxL10 82RyFXTdwCyrMWPtMcv2nF/d/SIZL1x/ulD3klM+RZpb1STZv7pDl2ZRG8KtG0+LF9r/ ynQmMgSSSC7mb1wOQeGwBg1z2BOPEpeJOIytZNS+yLsZkTo83xeHFK6Afph9YIi6Tfk3 E6N0Cy24U3NjvwooBtTm6cKJw5CrYWSMGoOvB4TCWE1uw6OpiXj8WWshWyAoOY3y4/st t1srn+S6Z0cyKn3pA6K+FqSe1D5HaSgzXbWV8HhvRKfHZi0llrgR2mFwZ0cOsNufO+TU md8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=N59pCm+j1T1s1rBAZRd9qmSJquSqXocptE/dcl6oSZc=; b=UCAtTp4eHxQdNT12seI9W0RB7g6fPkceNJaG8Wu8lNJhqwWypgiltAwgm87KBFpP5K oBqHnwb3Lgt0OEiavDLD9Q4OrVUj83DQ9Xqpkfu98ErAoDoq7yKA5vksUJRLoalXVpRO h/YriB7xzlE1siSM5O747U5EPb7+kxclwz03eMWIepCPU63fFISWbldMZbRGPN5loWTG MmkE/1ziOeQFDgOBY7N34VAM1mJpINbdT1Z87K0mDszx2AO7TE4RZ4XumRA9tXFuJdIX Fo41HKlOSWxR5DYq7FywvopteCpwzdWwC8LM/JRlskzTkL/a5aDRG/t+imYNWr9wiZ4r Jyjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 e5si47759461pgl.536.2019.08.12.07.42.45; Mon, 12 Aug 2019 07:43:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbfHLOmL (ORCPT + 99 others); Mon, 12 Aug 2019 10:42:11 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38610 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726541AbfHLOmL (ORCPT ); Mon, 12 Aug 2019 10:42:11 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 01C853840F2FEFA9693C; Mon, 12 Aug 2019 22:42:09 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Mon, 12 Aug 2019 22:42:02 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH net-next] net: hns3: Make hclge_func_reset_sync_vf static Date: Mon, 12 Aug 2019 22:41:56 +0800 Message-ID: <20190812144156.70020-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:3190:5: warning: symbol 'hclge_func_reset_sync_vf' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index d207dac..a3ca0e6 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3187,7 +3187,7 @@ static int hclge_set_all_vf_rst(struct hclge_dev *hdev, bool reset) return 0; } -int hclge_func_reset_sync_vf(struct hclge_dev *hdev) +static int hclge_func_reset_sync_vf(struct hclge_dev *hdev) { struct hclge_pf_rst_sync_cmd *req; struct hclge_desc desc; -- 2.7.4