]> www.infradead.org Git - users/hch/configfs.git/commitdiff
bpf: selftests: Fix bpf_iter_task_vma_new() prototype
authorDaniel Xu <dxu@dxuuu.xyz>
Wed, 12 Jun 2024 15:58:26 +0000 (09:58 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 12 Jun 2024 18:01:30 +0000 (11:01 -0700)
bpf_iter_task_vma_new() is defined as taking a u64 as its 3rd argument.
u64 is a unsigned long long. bpf_experimental.h was defining the
prototype as unsigned long.

Fix by using __u64.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/fab4509bfee914f539166a91c3ff41e949f3df30.1718207789.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h

index 3d9e4b8c6b81a950654bc4a7d759b6e6e0bcf4a0..8ee7a00b7c8289c6702c82f6caec48e78ab47265 100644 (file)
@@ -163,7 +163,7 @@ struct bpf_iter_task_vma;
 
 extern int bpf_iter_task_vma_new(struct bpf_iter_task_vma *it,
                                 struct task_struct *task,
-                                unsigned long addr) __ksym;
+                                __u64 addr) __ksym;
 extern struct vm_area_struct *bpf_iter_task_vma_next(struct bpf_iter_task_vma *it) __ksym;
 extern void bpf_iter_task_vma_destroy(struct bpf_iter_task_vma *it) __ksym;