diff mbox

[v3,7/8] drivers: net: Mark functions as static in debug.c

Message ID 8e5f8e06430a9d822c4d5a1a3a7a3454eb75281c.1387382457.git.rashika.kheria@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Rashika Dec. 19, 2013, 8:55 a.m. UTC
This patch marks the function il_clear_traffic_stats() in debug.c as
static because they are not used outside this file.

Thus, it also removes the following warnings in
wireless/iwlegacy/debug.c:

drivers/net/wireless/iwlegacy/debug.c:35:1: warning: no previous prototype for ‘il_clear_traffic_stats’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 drivers/net/wireless/iwlegacy/debug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Dec. 19, 2013, 11:52 p.m. UTC | #1
From: Rashika Kheria <rashika.kheria@gmail.com>

Date: Thu, 19 Dec 2013 14:25:34 +0530

> This patch marks the function il_clear_traffic_stats() in debug.c as

> static because they are not used outside this file.

> 

> Thus, it also removes the following warnings in

> wireless/iwlegacy/debug.c:

> 

> drivers/net/wireless/iwlegacy/debug.c:35:1: warning: no previous prototype for ‘il_clear_traffic_stats’ [-Wmissing-prototypes]

> 

> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

> Reviewed-by: Josh Triplett <josh@joshtriplett.org>


Applied.
diff mbox

Patch

diff --git a/drivers/net/wireless/iwlegacy/debug.c b/drivers/net/wireless/iwlegacy/debug.c
index eff2650..b7e03dd 100644
--- a/drivers/net/wireless/iwlegacy/debug.c
+++ b/drivers/net/wireless/iwlegacy/debug.c
@@ -31,7 +31,7 @@ 
 
 #include "common.h"
 
-void
+static void
 il_clear_traffic_stats(struct il_priv *il)
 {
 	memset(&il->tx_stats, 0, sizeof(struct traffic_stats));