Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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")

Tested-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Pedro Tammela and committed by
David S. Miller
40cab44b c2052189

+2 -2
+2 -2
include/net/tc_wrapper.h
··· 216 216 return tp->classify(skb, tp, res); 217 217 } 218 218 219 + #endif /* CONFIG_NET_CLS */ 220 + 219 221 static inline void tc_wrapper_init(void) 220 222 { 221 223 #ifdef CONFIG_X86 ··· 225 223 static_branch_enable(&tc_skip_wrapper); 226 224 #endif 227 225 } 228 - 229 - #endif /* CONFIG_NET_CLS */ 230 226 231 227 #else 232 228