act_connmark: fix dependencies better
Subsystems (3)
PATCH 1/1 act_connmark: fix dependencies better
NET_ACT_CONNMARK fails to build if NF_CONNTRACK_MARK is disabled, and d7924450e14ea4 ("act_connmark: Add missing dependency on NF_CONNTRACK_MARK") fixed that case, but missed the cased where NF_CONNTRACK is a loadable module.
This adds the second dependency to ensure that NET_ACT_CONNMARK can only be built-in if NF_CONNTRACK is also part of the kernel rather than a loadable module.
net/sched/Kconfig +1 -1
@@ -713,7 +713,7 @@ config NET_ACT_BPF config NET_ACT_CONNMARK tristate "Netfilter Connection Mark Retriever" depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES - depends on NF_CONNTRACK_MARK + depends on NF_CONNTRACK && NF_CONNTRACK_MARK ---help--- Say Y here to allow retrieving of conn mark
From: Arnd Bergmann <[email protected]>
Date: Wed, 28 Jan 2015 17:30:09 +0100
Quoted 10 lines
NET_ACT_CONNMARKfails to build ifNF_CONNTRACK_MARKis disabled, andd7924450e14ea4("act_connmark: Add missing dependency onNF_CONNTRACK_MARK") fixed that case, but missed the cased whereNF_CONNTRACKis a loadable module.This adds the second dependency to ensure that
NET_ACT_CONNMARKcan only be built-in ifNF_CONNTRACKis also part of the kernel rather than a loadable module.Signed-off-by Arnd Bergmann <[email protected]>
Applied, thanks Arnd.