Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf: selftests: Fix bpf_iter_task_vma_new() prototype

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>

authored by

Daniel Xu and committed by
Alexei Starovoitov
718135f5 ebb79e96

+1 -1
+1 -1
tools/testing/selftests/bpf/bpf_experimental.h
··· 163 163 164 164 extern int bpf_iter_task_vma_new(struct bpf_iter_task_vma *it, 165 165 struct task_struct *task, 166 - unsigned long addr) __ksym; 166 + __u64 addr) __ksym; 167 167 extern struct vm_area_struct *bpf_iter_task_vma_next(struct bpf_iter_task_vma *it) __ksym; 168 168 extern void bpf_iter_task_vma_destroy(struct bpf_iter_task_vma *it) __ksym; 169 169