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

Showing the changes to include/net (1 of 1 file). Show all

Unified · Split

include/net/tc_wrapper.h+2−2
@@ -216,6 +216,8 @@ skip: · 215 unmodified lines
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) · 2 unmodified lines
224226 #endif
225227 }
226228
227−#endif /* CONFIG_NET_CLS */
228−
229229 #else
230230
231231 #define TC_INDIRECT_SCOPE static