Skip to content

Commit

Permalink
net/sched: fix retpoline wrapper compilation on configs without tc fi…
Browse files Browse the repository at this point in the history
…lters

Rudi reports a compilation failure on x86_64 when CONFIG_NET_CLS or
CONFIG_NET_CLS_ACT is not set but CONFIG_RETPOLINE is set.
A misplaced '#endif' was causing the issue.

Fixes: 7f0e810 ("net/sched: add retpoline wrapper for tc")

Tested-by: Rudi Heitbaum <[email protected]>
Signed-off-by: Pedro Tammela <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tammela authored and davem330 committed Dec 28, 2022
1 parent c205218 commit 40cab44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/tc_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
return tp->classify(skb, tp, res);
}

#endif /* CONFIG_NET_CLS */

static inline void tc_wrapper_init(void)
{
#ifdef CONFIG_X86
Expand All @@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void)
#endif
}

#endif /* CONFIG_NET_CLS */

#else

#define TC_INDIRECT_SCOPE static
Expand Down

0 comments on commit 40cab44

Please sign in to comment.