Skip to content

netfilter: sparse fixups

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: nfnetlink: add missing __be16 castnet/netfilter/nfnetlink.c+1 -10 replies
2/6netfilter: x_tables: use correct integer typesnet/netfilter/xt_DSCP.c net/netfilter/xt_TCPMSS.c net/netfilter/xt_connlimit.c+9 -90 replies
3/6netfilter: nf_tables: use the correct get/put helpersnet/netfilter/nft_byteorder.c net/netfilter/nft_osf.c net/netfilter/nft_socket.c +1 more+11 -100 replies
4/6netfilter: nf_tables: add and use BE register load-store helpersinclude/net/netfilter/nf_tables.h net/bridge/netfilter/nft_meta_bridge.c net/netfilter/nft_tproxy.c+19 -40 replies
5/6netfilter: nf_tables: use correct integer typesnet/netfilter/nft_cmp.c net/netfilter/nft_ct.c net/netfilter/nft_exthdr.c +1 more+12 -110 replies
6/6netfilter: nf_tables: move nft_cmp_fast_mask to where its usedinclude/net/netfilter/nf_tables_core.h net/netfilter/nft_cmp.c+12 -100 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nf-next 0/6] netfilter: sparse fixups

This series adds be16/be32 annotations to reduce the number of endianess warnings generated by the sparse checker.

Compile tested only, but objdump shows almost no code changes except for nft_tunnel.c where a variables type was changed to __be16.

Florian Westphal (6):
netfilter: nfnetlink: add missing __be16 cast
netfilter: x_tables: use correct integer types
netfilter: nf_tables: use the correct get/put helpers
netfilter: nf_tables: add and use BE register load-store helpers
netfilter: nf_tables: use correct integer types
netfilter: nf_tables: move nft_cmp_fast_mask to where its used

 include/net/netfilter/nf_tables.h      | 15 +++++++++++++++
 include/net/netfilter/nf_tables_core.h | 10 ----------
 net/bridge/netfilter/nft_meta_bridge.c |  2 +-
 net/netfilter/nfnetlink.c              |  2 +-
 net/netfilter/nft_byteorder.c          |  3 ++-
 net/netfilter/nft_cmp.c                | 18 +++++++++++++++---
 net/netfilter/nft_ct.c                 |  4 ++--
 net/netfilter/nft_exthdr.c             | 10 +++++-----
 net/netfilter/nft_osf.c                |  2 +-
 net/netfilter/nft_socket.c             |  8 ++++----
 net/netfilter/nft_tproxy.c             |  6 +++---
 net/netfilter/nft_tunnel.c             |  3 ++-
 net/netfilter/nft_xfrm.c               |  8 ++++----
 net/netfilter/xt_DSCP.c                |  8 ++++----
 net/netfilter/xt_TCPMSS.c              |  4 ++--
 net/netfilter/xt_connlimit.c           |  6 +++---
 16 files changed, 64 insertions(+), 45 deletions(-)
Signature · 1 line
2.35.1