Skip to content

Commit 40cab44

Browse files
tammeladavem330
authored andcommitted
net/sched: fix retpoline wrapper compilation on configs without tc filters
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]>
1 parent c205218 commit 40cab44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/tc_wrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
216216
return tp->classify(skb, tp, res);
217217
}
218218

219+
#endif /* CONFIG_NET_CLS */
220+
219221
static inline void tc_wrapper_init(void)
220222
{
221223
#ifdef CONFIG_X86
@@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void)
224226
#endif
225227
}
226228

227-
#endif /* CONFIG_NET_CLS */
228-
229229
#else
230230

231231
#define TC_INDIRECT_SCOPE static

0 commit comments

Comments
 (0)