All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured
@ 2017-02-15 10:57 Jiri Pirko
  2017-02-15 17:17 ` Sabrina Dubroca
  2017-02-15 17:23 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Jiri Pirko @ 2017-02-15 10:57 UTC (permalink / raw)
  To: netdev; +Cc: davem, jhs, mlxsw, sd

From: Jiri Pirko <jiri@mellanox.com>

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: cf1facda2f61 ("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>
---
 include/net/pkt_cls.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 71b266c..be5c12a 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -17,7 +17,13 @@ struct tcf_walker {
 int register_tcf_proto_ops(struct tcf_proto_ops *ops);
 int unregister_tcf_proto_ops(struct tcf_proto_ops *ops);
 
+#ifdef CONFIG_NET_CLS
 void tcf_destroy_chain(struct tcf_proto __rcu **fl);
+#else
+static inline void tcf_destroy_chain(struct tcf_proto __rcu **fl)
+{
+}
+#endif
 
 static inline unsigned long
 __cls_set_class(unsigned long *clp, unsigned long cl)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured
  2017-02-15 10:57 [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured Jiri Pirko
@ 2017-02-15 17:17 ` Sabrina Dubroca
  2017-02-15 17:23 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Sabrina Dubroca @ 2017-02-15 17:17 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: netdev, davem, jhs, mlxsw

2017-02-15, 11:57:50 +0100, Jiri Pirko wrote:
> From: Jiri Pirko <jiri@mellanox.com>
> 
> 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: cf1facda2f61 ("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>

Thanks for the fix.

Tested-by: Sabrina Dubroca <sd@queasysnail.net>

-- 
Sabrina

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured
  2017-02-15 10:57 [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured Jiri Pirko
  2017-02-15 17:17 ` Sabrina Dubroca
@ 2017-02-15 17:23 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-02-15 17:23 UTC (permalink / raw)
  To: jiri; +Cc: netdev, jhs, mlxsw, sd

From: Jiri Pirko <jiri@resnulli.us>
Date: Wed, 15 Feb 2017 11:57:50 +0100

> From: Jiri Pirko <jiri@mellanox.com>
> 
> 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: cf1facda2f61 ("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>

Applied, thanks Jiri.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-15 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 10:57 [patch net-next] sched: have stub for tcf_destroy_chain in case NET_CLS is not configured Jiri Pirko
2017-02-15 17:17 ` Sabrina Dubroca
2017-02-15 17:23 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.