Skip to contentSkip to conversation

net: sched: select cls when cls_act is enabled

PATCH Applied Jiri Pirko 2 participants 2 messages Jun 4, 2017 – Jun 5, 2017

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 net: sched: select cls when cls_act is enabled

From: Jiri Pirko <[email protected]>

It really makes no sense to have cls_act enabled without cls. In that case, the cls_act code is dead. So select it.

This also fixes an issue recently reported by kbuild robot:
[linux-next:master 1326/4151] net/sched/act_api.c:37:18: error: implicit declaration of function 'tcf_chain_get'

Fixes db50514f9a9c ("net: sched: add termination action to allow goto chain")
---
 net/sched/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/sched/Kconfig +1 -0
index 9fb84f0..e70ed26 100644
@@ -649,6 +649,7 @@ config NET_EMATCH_IPSET
 
 config NET_CLS_ACT
 	bool "Actions"
+	select NET_CLS
 	---help---
 	  Say Y here if you want to use traffic control actions. Actions
 	  get attached to classifiers and are invoked after a successful
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Sun, 4 Jun 2017 18:49:28 +0200

Quoted 11 lines

From: Jiri Pirko <[email protected]>

It really makes no sense to have cls_act enabled without cls. In that case, the cls_act code is dead. So select it.

This also fixes an issue recently reported by kbuild robot:
[linux-next:master 1326/4151] net/sched/act_api.c:37:18: error: implicit declaration of function 'tcf_chain_get'

Fixes db50514f9a9c ("net: sched: add termination action to allow goto chain")

Applied, thanks Jiri.