Skip to content

Commit 8ae7003

Browse files
jpirkodavem330
authored andcommitted
sched: have stub for tcf_destroy_chain in case NET_CLS is not configured
This fixes broken build for !NET_CLS: net/built-in.o: In function `fq_codel_destroy': /home/sab/linux/net-next/net/sched/sch_fq_codel.c:468: undefined reference to `tcf_destroy_chain' Fixes: cf1facd ("sched: move tcf_proto_destroy and tcf_destroy_chain helpers into cls_api") Reported-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Tested-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d498f87 commit 8ae7003

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/net/pkt_cls.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ struct tcf_walker {
1717
int register_tcf_proto_ops(struct tcf_proto_ops *ops);
1818
int unregister_tcf_proto_ops(struct tcf_proto_ops *ops);
1919

20+
#ifdef CONFIG_NET_CLS
2021
void tcf_destroy_chain(struct tcf_proto __rcu **fl);
22+
#else
23+
static inline void tcf_destroy_chain(struct tcf_proto __rcu **fl)
24+
{
25+
}
26+
#endif
2127

2228
static inline unsigned long
2329
__cls_set_class(unsigned long *clp, unsigned long cl)

0 commit comments

Comments
 (0)