Commit 40cab44b authored by Pedro Tammela's avatar Pedro Tammela Committed by David S. Miller

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: 7f0e8102 ("net/sched: add retpoline wrapper for tc")
Tested-by: default avatarRudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: default avatarPedro Tammela <pctammela@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c2052189
...@@ -216,6 +216,8 @@ static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, ...@@ -216,6 +216,8 @@ static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
return tp->classify(skb, tp, res); return tp->classify(skb, tp, res);
} }
#endif /* CONFIG_NET_CLS */
static inline void tc_wrapper_init(void) static inline void tc_wrapper_init(void)
{ {
#ifdef CONFIG_X86 #ifdef CONFIG_X86
...@@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void) ...@@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void)
#endif #endif
} }
#endif /* CONFIG_NET_CLS */
#else #else
#define TC_INDIRECT_SCOPE static #define TC_INDIRECT_SCOPE static
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment