History

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: 7f0e810220e2 ("net/sched: add retpoline wrapper for tc")

Pedro Tammela committed 3 years ago

Commit 40cab441 parent c2052181 file · +2 −2Browse files

Unified · Split

include/net/tc_wrapper.h+2−2
@@ -216,6 +216,8 @@ skip: · 215 unmodified lines
216 return tp->classify(skb, tp, res);216 return tp->classify(skb, tp, res);
217}217}
218 218
219#endif /* CONFIG_NET_CLS */
220
219static inline void tc_wrapper_init(void)221static inline void tc_wrapper_init(void)
220{222{
221#ifdef CONFIG_X86223#ifdef CONFIG_X86
@@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void) · 2 unmodified lines
224#endif226#endif
225}227}
226 228
227#endif /* CONFIG_NET_CLS */
228
229#else229#else
230 230
231#define TC_INDIRECT_SCOPE static231#define TC_INDIRECT_SCOPE static