diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-25 10:31:37 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-26 15:41:16 +0200 |
commit | 572a6928f9e3689ad2c2f94814e6215104eec1b7 (patch) | |
tree | a97dbeb75f70efcc66d81fa6c6db4745eb6f0655 /net/core | |
parent | 9e859e8f199d4ab15ed418f7d17735c77619d14f (diff) | |
download | linux-572a6928f9e3689ad2c2f94814e6215104eec1b7.tar.bz2 |
xdp: Make __mem_id_disconnect static
Fix sparse warning:
net/core/xdp.c:88:6: warning:
symbol '__mem_id_disconnect' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/xdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/xdp.c b/net/core/xdp.c index b29d7b513a18..829377cc83db 100644 --- a/net/core/xdp.c +++ b/net/core/xdp.c @@ -85,7 +85,7 @@ static void __xdp_mem_allocator_rcu_free(struct rcu_head *rcu) kfree(xa); } -bool __mem_id_disconnect(int id, bool force) +static bool __mem_id_disconnect(int id, bool force) { struct xdp_mem_allocator *xa; bool safe_to_remove = true; |