Commit 33c30a8b authored by Quentin Monnet's avatar Quentin Monnet Committed by David S. Miller

net: sched: fix tcf_block_get_ext() in case CONFIG_NET_CLS is not set

The definition of functions tcf_block_get() and tcf_block_get_ext()
depends of CONFIG_NET_CLS being set. When those functions gained extack
support, only one version of the declaration of those functions was
updated. Function tcf_block_get() was later fixed with commit
3c149091 ("net: sch: api: fix tcf_block_get").

Change arguments of tcf_block_get_ext() for the case when CONFIG_NET_CLS
is not set.

Fixes: 8d1a77f9 ("net: sch: api: add extack support in tcf_block_get")
Signed-off-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Acked-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a38806f
...@@ -87,7 +87,8 @@ int tcf_block_get(struct tcf_block **p_block, ...@@ -87,7 +87,8 @@ int tcf_block_get(struct tcf_block **p_block,
static inline static inline
int tcf_block_get_ext(struct tcf_block **p_block, struct Qdisc *q, int tcf_block_get_ext(struct tcf_block **p_block, struct Qdisc *q,
struct tcf_block_ext_info *ei) struct tcf_block_ext_info *ei,
struct netlink_ext_ack *extack)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment