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")
Showing the changes to include/net (1 of 1 file). Show all
Unified · Split
| @@ -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 | |||
| 219 | static inline void tc_wrapper_init(void) | 221 | static inline void tc_wrapper_init(void) |
| 220 | { | 222 | { |
| 221 | #ifdef CONFIG_X86 | 223 | #ifdef CONFIG_X86 |
| @@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void) · 2 unmodified lines | |||
| 224 | #endif | 226 | #endif |
| 225 | } | 227 | } |
| 226 | 228 | ||
| 227 | #endif /* CONFIG_NET_CLS */ | ||
| 228 | |||
| 229 | #else | 229 | #else |
| 230 | 230 | ||
| 231 | #define TC_INDIRECT_SCOPE static | 231 | #define TC_INDIRECT_SCOPE static |