Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp246367yba; Sat, 4 May 2019 01:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqfsssRypAdg4fcVP75us55K3WSc6SklBjFBT/s0sGh9gidt/wVL+0zJANKX5kErVk59Lo X-Received: by 2002:a65:4342:: with SMTP id k2mr17066317pgq.178.1556958113992; Sat, 04 May 2019 01:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556958113; cv=none; d=google.com; s=arc-20160816; b=rATsjcA8KjQBaNKSVmiFUyd/febRgWTlG8BsBFGFMDfSPpopZhczn4GU1Xpgt54gcD vdvehrkTlxtu7LCInrdAR0awy1Gb9zFBV/Uf37gg5p0rptRX9T/s6QwZ45OUMnBr7ZSe 5bNfK6UBaK2ojGtt/cSZqwRLBodBlG2K5qwZO3cAPsb8gUzVE/TLNQBabgOlzvPynHRT UtBz7GFFkay/KqWqaH38+FLqsgLHMmceET1aNhDqY09wOHRm0aZrXxxdjnDFVg1T4AQx gj5NXjJYe0jzAsaPU6pz94VV6Kig0B4xvkMZRYBVD2GScZJG8iaPzoQsSoiBE2quQQTK ndsA== 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=1toVJWZDhmXhtHnh47dJEZM9l8Zw1azPyilUbvyAB50=; b=k8VwK1a5aU5PJFikFaBnvTBlSjfGFJsQg6nSlztD2G52QSUB1Q7aKeTp3pnXCRazwX RnaoyyFGZPYNcepFz4zb/Zpwvf1VsXdv4osLWyS0UGgEV2dQNE2IRPh1tEj3rUQihGa6 gzRO7gpeLB+q1JD6QHWtjNGihiHS2ySjIzo3H5KW35STVmOoimgK0nxlUd6IxCyJlaX4 f7TL+ANz3eK844h6JENgv3VJzp5k1j83Mu189IagaUGczF4dAABc++xd7YGaYfCXkQWT vOlX4p6s75nNYFhGwREQCeCQBckXrgl4HByHT7kLYhBZowft2H431VmmaYChjmstcgnx c6Yw== 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 184si6499128pfg.32.2019.05.04.01.21.38; Sat, 04 May 2019 01:21:53 -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 S1726965AbfEDIMX (ORCPT + 99 others); Sat, 4 May 2019 04:12:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51960 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbfEDIMW (ORCPT ); Sat, 4 May 2019 04:12:22 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 459ACBBC3AFF944E1B78; Sat, 4 May 2019 16:12:20 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sat, 4 May 2019 16:12:11 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH net-next] netdevsim: Make nsim_num_vf static Date: Sat, 4 May 2019 16:12:07 +0800 Message-ID: <20190504081207.22764-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.177.31.96] 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/netdevsim/bus.c:253:5: warning: symbol 'nsim_num_vf' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/netdevsim/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/netdevsim/bus.c b/drivers/net/netdevsim/bus.c index ae48234..868fb9a 100644 --- a/drivers/net/netdevsim/bus.c +++ b/drivers/net/netdevsim/bus.c @@ -250,7 +250,7 @@ static int nsim_bus_remove(struct device *dev) return 0; } -int nsim_num_vf(struct device *dev) +static int nsim_num_vf(struct device *dev) { struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); -- 2.7.0