Message ID | tencent_FC8827062142CF5936974B2A30AF6CA3C408@qq.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 11e456cae91e9044cb12c2b037b52c9b268925f7 |
Headers | show |
Series | [bpf-next] selftests/bpf: Fix compilation errors: assign a value to a constant | expand |
diff --git a/tools/testing/selftests/bpf/progs/find_vma_fail1.c b/tools/testing/selftests/bpf/progs/find_vma_fail1.c index b3b326b8e2d1..47d5dedff554 100644 --- a/tools/testing/selftests/bpf/progs/find_vma_fail1.c +++ b/tools/testing/selftests/bpf/progs/find_vma_fail1.c @@ -13,7 +13,7 @@ static long write_vma(struct task_struct *task, struct vm_area_struct *vma, struct callback_ctx *data) { /* writing to vma, which is illegal */ - vma->vm_flags |= 0x55; + vma->vm_start = 0xffffffffff600000; return 0; }