mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
net: sched: wrap tc_skip_wrapper with CONFIG_RETPOLINE
[ Upstream commit 8cde87b007
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0517065daf
commit
52edaa6fb8
1 changed files with 2 additions and 0 deletions
|
@ -2324,7 +2324,9 @@ static struct pernet_operations psched_net_ops = {
|
||||||
.exit = psched_net_exit,
|
.exit = psched_net_exit,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if IS_ENABLED(CONFIG_RETPOLINE)
|
||||||
DEFINE_STATIC_KEY_FALSE(tc_skip_wrapper);
|
DEFINE_STATIC_KEY_FALSE(tc_skip_wrapper);
|
||||||
|
#endif
|
||||||
|
|
||||||
static int __init pktsched_init(void)
|
static int __init pktsched_init(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue