selftests/bpf: Fix progs/find_vma_fail1.c build error.
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Mar 2023 20:41:18 +0000 (12:41 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Mar 2023 20:41:18 +0000 (12:41 -0800)
The commit 11e456cae91e ("selftests/bpf: Fix compilation errors: Assign a value to a constant")
fixed the issue cleanly in bpf-next.
This is an alternative fix in bpf tree to avoid merge conflict between bpf and bpf-next.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/find_vma_fail1.c

index b3b326b8e2d1cb38cf374d18737529ce0fb7d9a4..6dab9cffda132b755c554fcddb67af752b22187a 100644 (file)
@@ -2,6 +2,7 @@
 /* Copyright (c) 2021 Facebook */
 #include "vmlinux.h"
 #include <bpf/bpf_helpers.h>
+#define vm_flags vm_start
 
 char _license[] SEC("license") = "GPL";