summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@mojatatu.com>2022-12-27 11:04:59 -0300
committerDavid S. Miller <davem@davemloft.net>2022-12-28 12:11:32 +0000
commit40cab44b9089a41f71bbd0eff753eb91d5dafd68 (patch)
tree8e734c8d286163f95e66849925c4e4616db6edad /include/net
parentc2052189f19bd98c80b5d46dc6e42330d2b3b35d (diff)
downloadlinux-40cab44b9089a41f71bbd0eff753eb91d5dafd68.tar.bz2
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tc_wrapper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tc_wrapper.h b/include/net/tc_wrapper.h
index ceed2fc089ff..d323fffb839a 100644
--- a/include/net/tc_wrapper.h
+++ b/include/net/tc_wrapper.h
@@ -216,6 +216,8 @@ skip:
return tp->classify(skb, tp, res);
}
+#endif /* CONFIG_NET_CLS */
+
static inline void tc_wrapper_init(void)
{
#ifdef CONFIG_X86
@@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void)
#endif
}
-#endif /* CONFIG_NET_CLS */
-
#else
#define TC_INDIRECT_SCOPE static