diff options
| author | Alan Maguire <[email protected]> | 2024-09-26 14:49:48 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-04 00:47:36 +0000 |
| commit | c27d8235ba97139d7a085367ff57773902eb3fc5 (patch) | |
| tree | 773ed2bdd2b172905ec8cd6ac7fdf997268aced7 /scripts/bpf_doc.py | |
| parent | bpf: Call kfree(obj) only once in free_one() (diff) | |
| download | kernel-c27d8235ba97139d7a085367ff57773902eb3fc5.tar.gz kernel-c27d8235ba97139d7a085367ff57773902eb3fc5.zip | |
selftests/bpf: Fix uprobe_multi compilation error
When building selftests, the following was seen:
uprobe_multi.c: In function ‘trigger_uprobe’:
uprobe_multi.c:108:40: error: ‘MADV_PAGEOUT’ undeclared (first use in this function)
108 | madvise(addr, page_sz, MADV_PAGEOUT);
| ^~~~~~~~~~~~
uprobe_multi.c:108:40: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:850: bpf-next/tools/testing/selftests/bpf/uprobe_multi] Error 1
...even with updated UAPI headers. It seems the above value is
defined in UAPI <linux/mman.h> but including that file triggers
other redefinition errors. Simplest solution is to add a
guarded definition, as was done for MADV_POPULATE_READ.
Fixes: 3c217a182018 ("selftests/bpf: add build ID tests")
Signed-off-by: Alan Maguire <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
