Skip to content

Commit

Permalink
net: sched: wrap tc_skip_wrapper with CONFIG_RETPOLINE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Min-Hua Chen authored and David S. Miller committed Jun 4, 2023
1 parent 3d5f4d2 commit 8cde87b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8cde87b

Please sign in to comment.