From: Min-Hua Chen Date: Fri, 2 Jun 2023 23:52:09 +0000 (+0800) Subject: net: sched: wrap tc_skip_wrapper with CONFIG_RETPOLINE X-Git-Tag: v6.6.17~4729^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cde87b007dad2e461015ff70352af56ceb02c75;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Pedro Tammela Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 014209b..9ea5181 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) {