Skip to contentSkip to conversation

dccp: make local variable static

PATCH Applied Stephen Hemminger 2 participants 2 messages Jan 4, 2014 – Jan 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dccp: make local variable static

Make DCCP module config variable static, only used in one file.

---
 net/dccp/ccids/lib/tfrc.c |    2 +-
 net/dccp/ccids/lib/tfrc.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
net/dccp/ccids/lib/tfrc.c +1 -1
@@ -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
net/dccp/ccids/lib/tfrc.h +0 -1
@@ -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...)