summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin-Hua Chen <minhuadotchen@gmail.com>2023-06-03 02:52:09 +0300
committerDavid S. Miller <davem@davemloft.net>2023-06-04 17:49:06 +0300
commit8cde87b007dad2e461015ff70352af56ceb02c75 (patch)
tree1a5cd6e09499dc39483a621ab4ac1a6450adaf01
parent3d5f4d29f6a8c1f248ea652daddc9c4701370120 (diff)
downloadlinux-8cde87b007dad2e461015ff70352af56ceb02c75.tar.xz
net: sched: wrap tc_skip_wrapper with CONFIG_RETPOLINE
This patch fixes the following sparse warning: net/sched/sch_api.c:2305:1: sparse: warning: symbol 'tc_skip_wrapper' was not declared. Should it be static? No functional change intended. Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com> Acked-by: Pedro Tammela <pctammela@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/sch_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 014209b1dd58..9ea51812b9cf 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -2302,7 +2302,9 @@ static struct pernet_operations psched_net_ops = {
.exit = psched_net_exit,
};
+#if IS_ENABLED(CONFIG_RETPOLINE)
DEFINE_STATIC_KEY_FALSE(tc_skip_wrapper);
+#endif
static int __init pktsched_init(void)
{