diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2021-08-08 16:04:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-09 10:00:02 +0100 |
commit | 86aab09a4870bb8346c9579864588c3d7f555299 (patch) | |
tree | 3ff27023530a78eb623aa23341e81bb2771e36fe /lib | |
parent | 3125f26c514826077f2a4490b75e9b1c7a644c42 (diff) | |
download | linux-86aab09a4870bb8346c9579864588c3d7f555299.tar.bz2 |
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: dc841e30eaea ("dccp: Extend CCID packet dequeueing interface")
Fixes: 380240864451 ("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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions