diff options
| author | Jason Xing <[email protected]> | 2024-10-29 07:46:27 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-10-29 18:26:13 +0000 |
| commit | 42602e3a06f8e5b9a059344e305c9bee2dcc87c8 (patch) | |
| tree | 57a89c757f659ea4030bc9f46df505e18e94a4ec /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
| parent | bpf, arm64: Remove garbage frame for struct_ops trampoline (diff) | |
| download | kernel-42602e3a06f8e5b9a059344e305c9bee2dcc87c8.tar.gz kernel-42602e3a06f8e5b9a059344e305c9bee2dcc87c8.zip | |
bpf: handle implicit declaration of function gettid in bpf_iter.c
As we can see from the title, when I compiled the selftests/bpf, I
saw the error:
implicit declaration of function ‘gettid’ ; did you mean ‘getgid’? [-Werror=implicit-function-declaration]
skel->bss->tid = gettid();
^~~~~~
getgid
Directly call the syscall solves this issue.
Signed-off-by: Jason Xing <[email protected]>
Reviewed-by: Alan Maguire <[email protected]>
Tested-by: Alan Maguire <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions
