OSDN Git Service

bpf: Replace __ksize with ksize.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 7 Sep 2022 02:38:53 +0000 (19:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Sep 2022 02:38:53 +0000 (19:38 -0700)
__ksize() was made private. Use ksize() instead.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/memalloc.c

index 5cc952d..20621f5 100644 (file)
@@ -610,7 +610,7 @@ void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr)
        if (!ptr)
                return;
 
-       idx = bpf_mem_cache_idx(__ksize(ptr - LLIST_NODE_SZ));
+       idx = bpf_mem_cache_idx(ksize(ptr - LLIST_NODE_SZ));
        if (idx < 0)
                return;