Skip to content

netfilter: conntrack: label helpers conditional compilation updates

Simon Horman llvm netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: conntrack: compile label helpers unconditionallynet/netfilter/nf_conntrack_netlink.c+0 -50 replies
2/2netfilter: conntrack: conditionally compile ctnetlink_label_sizenet/netfilter/nf_conntrack_netlink.c+2 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy Shevchenko
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH nf-next 0/2] netfilter: conntrack: label helpers conditional compilation updates

Hi,

This short series updates conditional compilation of label helpers to:

1) Compile them regardless of if CONFIG_NF_CONNTRACK_LABELS is enabled or not. It is safe to do so as the functions will always return 0 if CONFIG_NF_CONNTRACK_LABELS is not enabled. And the compiler should optimise waway the code. Which is the desired behaviour.

2) Only compile ctnetlink_label_size if CONFIG_NF_CONNTRACK_EVENTS is enabled. This addresses a warning about this function being unused in this case.

Found by inspection.
Patches have been compile tested only.

---
Simon Horman (2):
netfilter: conntrack: compile label helpers unconditionally
netfilter: conntrack: conditionally compile ctnetlink_label_size

 net/netfilter/nf_conntrack_netlink.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

base-commit: d5c4546062fd6f5dbce575c7ea52ad66d1968678