Skip to content

Commit

Permalink
net: sched: fix tcf_block_get_ext() in case CONFIG_NET_CLS is not set
Browse files Browse the repository at this point in the history
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
3c14909 ("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: 8d1a77f ("net: sch: api: add extack support in tcf_block_get")
Signed-off-by: Quentin Monnet <[email protected]>
Acked-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
qmonnet authored and davem330 committed Jan 5, 2018
1 parent 0a38806 commit 33c30a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ int tcf_block_get(struct tcf_block **p_block,

static inline
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;
}
Expand Down

0 comments on commit 33c30a8

Please sign in to comment.