]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: add do-while-0 stubs for dccp_pr_debug macros
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 8 Aug 2021 23:04:40 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Aug 2021 09:00:02 +0000 (10:00 +0100)
commit3d6a2f211f5ce46f03b28181b9d2d1071a1d3a2c
tree3ff27023530a78eb623aa23341e81bb2771e36fe
parent70047af35dada8aab6570f107026b0f3b9bdcd28
dccp: add do-while-0 stubs for dccp_pr_debug macros

GCC complains about empty macros in an 'if' statement, so convert
them to 'do {} while (0)' macros.

Fixes these build warnings:

net/dccp/output.c: In function 'dccp_xmit_packet':
../net/dccp/output.c:283:71: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
  283 |                 dccp_pr_debug("transmit_skb() returned err=%d\n", err);
net/dccp/ackvec.c: In function 'dccp_ackvec_update_old':
../net/dccp/ackvec.c:163:80: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
  163 |                                               (unsigned long long)seqno, state);

Fixes: e41b2a21b9b9 ("dccp: Extend CCID packet dequeueing interface")
Fixes: 4d036bda3593 ("dccp ccid-2: Update code for the Ack Vector input/registration routine")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: dccp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h