From patchwork Tue Sep 6 08:11:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75478 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp422645qgf; Tue, 6 Sep 2016 01:12:20 -0700 (PDT) X-Received: by 10.66.147.234 with SMTP id tn10mr71261502pab.144.1473149540575; Tue, 06 Sep 2016 01:12:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f126si9322499pfa.3.2016.09.06.01.12.20; Tue, 06 Sep 2016 01:12:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933039AbcIFIMS (ORCPT + 4 others); Tue, 6 Sep 2016 04:12:18 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:35471 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932810AbcIFIMQ (ORCPT ); Tue, 6 Sep 2016 04:12:16 -0400 Received: by mail-pa0-f42.google.com with SMTP id b2so84350pat.2 for ; Tue, 06 Sep 2016 01:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=h5psKgn4d2EewMCr4TOYiSnUo0mKkh5QUaDax7cuq/g=; b=Wcv9LtO61s63k7y8FBBmZDXeTMlaL1c5dvlvZFnRE6WCyCwPx1ZxdE40FNr8zN2krw tRYT/C0/ZxgAEsCJj7EI8cO29SKCgcU88hUkVMQDXdCg5z/ESkSqLjpmFwEC6ZmEX2JZ 64lo6uakwYsiul92sd9bXcRf0y42M6aFmZjT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=h5psKgn4d2EewMCr4TOYiSnUo0mKkh5QUaDax7cuq/g=; b=CUkpEPhs3JituMMoqnQ8TOhPc2P7qIeXeCUdZDwVJ6vTi+PVqkIXWb6vxaSQWFqkj2 yij4CVx+a3aVaysXmW6mz+KPq9nmTeyDZEHwfqJWVifM+944qtJhxo9OmJrESODWzXGc yitE9yvK8eSvYN7r2242t6Mpfzi0MgXPazycuxcA/5I0g81OMDnGGEcs9SrEMtG5WWWq IGaY2P8i8PyYc6HFxyLnlpye5yx9dNuubW1sky+gxqgk8imJc58ivAjKzMCeGefCzNBg 5+md1wWNhVKzb8FX2PwCJ7K7EKWGIVxthL6GrrrxP/IUTsKMCtYUK2IjaBvcMmBvdnLx yX+Q== X-Gm-Message-State: AE9vXwNSGS7BkdOncnN3vUXBqr1n56Ph+7chyfpPu6y4TPJuOUZnRBaR8yhyWI0FGXpw/OBF X-Received: by 10.66.132.104 with SMTP id ot8mr49026702pab.66.1473149535314; Tue, 06 Sep 2016 01:12:15 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.17]) by smtp.gmail.com with ESMTPSA id i62sm38609041pfg.62.2016.09.06.01.12.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 01:12:14 -0700 (PDT) From: Baoyou Xie To: skhare@vmware.com, pv-drivers@vmware.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring() static Date: Tue, 6 Sep 2016 16:11:59 +0800 Message-Id: <1473149519-25993-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/net/vmxnet3/vmxnet3_drv.c:1643:1: warning: no previous prototype for 'vmxnet3_rq_destroy_all_rxdataring' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/net/vmxnet3/vmxnet3_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index c68fe49..fc68dd4 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -1639,7 +1639,7 @@ static void vmxnet3_rq_destroy(struct vmxnet3_rx_queue *rq, } } -void +static void vmxnet3_rq_destroy_all_rxdataring(struct vmxnet3_adapter *adapter) { int i;