[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240916-ct-ifdef-v1-0-81ef1798143b@kernel.org>
Date: Mon, 16 Sep 2024 16:14:40 +0100
From: Simon Horman <horms@...nel.org>
To: Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...filter.org>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Bill Wendling <morbo@...gle.com>, Justin Stitt <justinstitt@...gle.com>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, llvm@...ts.linux.dev
Subject: [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
Powered by blists - more mailing lists