]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
xdp: Make __mem_id_disconnect static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 25 Jun 2019 02:31:37 +0000 (10:31 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 26 Jun 2019 13:41:16 +0000 (15:41 +0200)
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>
net/core/xdp.c

index b29d7b513a1811b4e9f8dc57f001157f1e22ee82..829377cc83db1a7e8270b4f745fc207d3e2fdd6a 100644 (file)
@@ -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;