Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dccp: re-enable debug macro

dccp tfrc: revert

This reverts 6aee49c558de ("dccp: make local variable static") since
the variable tfrc_debug is referenced by the tfrc_pr_debug(fmt, ...)
macro when TFRC debugging is enabled. If it is enabled, use of the
macro produces a compilation error.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gerrit Renker and committed by
David S. Miller
09db3080 eb2d4c64

+2 -1
+1 -1
net/dccp/ccids/lib/tfrc.c
··· 8 8 #include "tfrc.h" 9 9 10 10 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG 11 - static bool tfrc_debug; 11 + bool tfrc_debug; 12 12 module_param(tfrc_debug, bool, 0644); 13 13 MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages"); 14 14 #endif
+1
net/dccp/ccids/lib/tfrc.h
··· 21 21 #include "packet_history.h" 22 22 23 23 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG 24 + extern bool tfrc_debug; 24 25 #define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a) 25 26 #else 26 27 #define tfrc_pr_debug(format, a...)