* [PATCH net-next 1/2] dccp: make local variable static
@ 2014-01-04 21:46 Stephen Hemminger
2014-01-05 1:20 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2014-01-04 21:46 UTC (permalink / raw)
To: Gerrit Renker, David Miller; +Cc: netdev
Make DCCP module config variable static, only used in one file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
net/dccp/ccids/lib/tfrc.c | 2 +-
net/dccp/ccids/lib/tfrc.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
--- a/net/dccp/ccids/lib/tfrc.c 2014-01-04 13:39:54.476218461 -0800
+++ b/net/dccp/ccids/lib/tfrc.c 2014-01-04 13:42:22.249773638 -0800
@@ -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
--- a/net/dccp/ccids/lib/tfrc.h 2014-01-04 13:39:54.476218461 -0800
+++ b/net/dccp/ccids/lib/tfrc.h 2014-01-04 13:42:22.249773638 -0800
@@ -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...)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next 1/2] dccp: make local variable static
2014-01-04 21:46 [PATCH net-next 1/2] dccp: make local variable static Stephen Hemminger
@ 2014-01-05 1:20 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-01-05 1:20 UTC (permalink / raw)
To: stephen; +Cc: gerrit, netdev
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Sat, 4 Jan 2014 13:46:29 -0800
> Make DCCP module config variable static, only used in one file.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-05 1:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 21:46 [PATCH net-next 1/2] dccp: make local variable static Stephen Hemminger
2014-01-05 1:20 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.