diff options
author | Jinrong Liang <[email protected]> | 2022-08-02 15:12:40 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-09-22 17:02:20 -0400 |
commit | 561cafebb2cf97b0927b4fb0eba22de6200f682e (patch) | |
tree | c0a07cf3d3216d38db12fcd6ff7a84a637f11d7f /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
parent | b4ac28a32f589d389e5391f5b546c17a484915dc (diff) |
selftests: kvm: Fix a compile error in selftests/kvm/rseq_test.c
The following warning appears when executing:
make -C tools/testing/selftests/kvm
rseq_test.c: In function ‘main’:
rseq_test.c:237:33: warning: implicit declaration of function ‘gettid’; did you mean ‘getgid’? [-Wimplicit-function-declaration]
(void *)(unsigned long)gettid());
^~~~~~
getgid
/usr/bin/ld: /tmp/ccr5mMko.o: in function `main':
../kvm/tools/testing/selftests/kvm/rseq_test.c:237: undefined reference to `gettid'
collect2: error: ld returned 1 exit status
make: *** [../lib.mk:173: ../kvm/tools/testing/selftests/kvm/rseq_test] Error 1
Use the more compatible syscall(SYS_gettid) instead of gettid() to fix it.
More subsequent reuse may cause it to be wrapped in a lib file.
Signed-off-by: Jinrong Liang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions