dccp: make local variable static
authorstephen hemminger <stephen@networkplumber.org>
Sat, 4 Jan 2014 21:46:29 +0000 (13:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2014 01:18:50 +0000 (20:18 -0500)
Make DCCP module config variable static, only used in one file.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ccids/lib/tfrc.c
net/dccp/ccids/lib/tfrc.h

index 62b5828acde0906b71fc39955c9f2b36582d395a..c073b81a1f3e74887783dbd6096b77629d12fbe0 100644 (file)
@@ -8,7 +8,7 @@
 #include "tfrc.h"
 
 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG
-bool tfrc_debug;
+static bool tfrc_debug;
 module_param(tfrc_debug, bool, 0644);
 MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages");
 #endif
index 40ee7d62b6520d7daf2a1a8f3b54bda9cfbedfc2..a3d8f7c76ae091ba92704a3e6a70186c53b3b0f5 100644 (file)
@@ -21,7 +21,6 @@
 #include "packet_history.h"
 
 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG
-extern bool tfrc_debug;
 #define tfrc_pr_debug(format, a...)    DCCP_PR_DEBUG(tfrc_debug, format, ##a)
 #else
 #define tfrc_pr_debug(format, a...)