Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1477148

[PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring() static

From Baoyou Xie <baoyou.xie@linaro.org>
Newsgroups linux.kernel
Subject [PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring() static
Date 2016-09-06 10:20 +0200
Message-ID <sejLP-7Or-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 <baoyou.xie@linaro.org>
---
 drivers/net/vmxnet3/vmxnet3_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring() static Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-06 10:20 +0200
  Re: [PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring() static Arnd Bergmann <arnd@arndb.de> - 2016-09-06 11:30 +0200
  Re: [PATCH] vmxnet3: mark vmxnet3_rq_destroy_all_rxdataring()  static David Miller <davem@davemloft.net> - 2016-09-07 01:00 +0200

csiph-web