dccp: make local variable static
Subsystems (2)
PATCH 1/2 dccp: make local variable static
Make DCCP module config variable static, only used in one file.
Signed-off-by Stephen Hemminger <[email protected]>
--- 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...)
From: Stephen Hemminger <[email protected]>
Date: Sat, 4 Jan 2014 13:46:29 -0800
Quoted 3 lines
Make DCCP module config variable static, only used in one file.
Signed-off-by Stephen Hemminger <[email protected]>
Applied.