Skip to content

fix clang warnings

Stephen Hemminger netdev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 0 repliesNew
  2. v311 patches 0 repliesSuperseded
  3. v211 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v111 patches5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11tc: add format attribute to tc_print_ratetc/tc_util.c+2 -10 replies
2/11utils: add format attributeinclude/utils.h+3 -10 replies
3/11netem: fix clang warningstc/q_netem.c+20 -130 replies
4/11flower: fix clang warningstc/f_flower.c+18 -310 replies
5/11tc_util: fix clang warning in print_masked_typetc/tc_util.c+12 -240 replies
6/11ipl2tp: fix clang warningip/ipl2tp.c+3 -20 replies
7/11can: fix clang warningip/iplink_can.c+3 -20 replies
8/11tipc: fix clang warning about empty format stringtipc/link.c+1 -10 replies
9/11tunnel: fix clang warningip/tunnel.c+1 -80 replies
10/11libbpf: fix clang warning about format non-literallib/bpf_libbpf.c+4 -20 replies
11/11json_print: suppress clang format warninglib/json_print.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 iproute2-next 00/11] fix clang warnings

This patch set makes iproute2-next main branch compile without warnings on Clang 11 (and probably later versions).

v4
- fix indentation in masked_type with newline (ct action)

Stephen Hemminger (11):
tc: add format attribute to tc_print_rate
utils: add format attribute
netem: fix clang warnings
flower: fix clang warnings
tc_util: fix clang warning in print_masked_type
ipl2tp: fix clang warning
can: fix clang warning
tipc: fix clang warning about empty format string
tunnel: fix clang warning
libbpf: fix clang warning about format non-literal
json_print: suppress clang format warning

 include/utils.h  |  4 +++-
 ip/ipl2tp.c      |  5 +++--
 ip/iplink_can.c  |  5 +++--
 ip/tunnel.c      |  9 +--------
 lib/bpf_libbpf.c |  6 ++++--
 lib/json_print.c |  8 ++++++++
 tc/f_flower.c    | 49 ++++++++++++++++++------------------------------
 tc/q_netem.c     | 33 +++++++++++++++++++-------------
 tc/tc_util.c     | 39 ++++++++++++++------------------------
 tipc/link.c      |  2 +-
 10 files changed, 75 insertions(+), 85 deletions(-)
Signature · 1 line
2.30.2