linux/tools/testing/selftests/kvm
Jinrong Liang 01b966b14c selftests: kvm: Fix a compile error in selftests/kvm/rseq_test.c
commit 561cafebb2 upstream.

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 <cloudliang@tencent.com>
Message-Id: <20220802071240.84626-1-cloudliang@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-01-18 11:48:47 +01:00
..
aarch64 selftests: KVM: Introduce psci_cpu_on_test 2021-08-19 09:08:57 +01:00
include kvm: selftests: do not use bitfields larger than 32-bits for PTEs 2022-05-12 12:30:24 +02:00
lib selftests: kvm: set rax before vmcall 2022-08-17 14:23:59 +02:00
s390x KVM: selftests: sync_regs test for diag318 2020-12-10 13:36:05 +01:00
x86_64 KVM: selftests: Make hyperv_clock selftest more stable 2022-08-11 13:07:51 +02:00
.gitignore KVM: x86: selftests: test simultaneous uses of V_IRQ from L1 and L0 2021-09-23 10:05:07 -04:00
access_tracking_perf_test.c KVM: selftests: Refactor help message for -s backing_src 2021-09-22 10:33:14 -04:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Refactor help message for -s backing_src 2021-09-22 10:33:14 -04:00
dirty_log_perf_test.c KVM: selftests: Create a separate dirty bitmap per slot 2021-09-22 10:33:14 -04:00
dirty_log_test.c tools: rename bitmap_alloc() to bitmap_zalloc() 2021-09-08 11:50:27 -07:00
hardware_disable_test.c KVM: selftests: Unconditionally use memslot 0 when loading elf binary 2021-06-24 04:31:17 -04:00
kvm_binary_stats_test.c KVM: selftests: Add checks for histogram stats bucket_size field 2021-08-20 16:06:32 -04:00
kvm_create_max_vcpus.c KVM: selftests: Make sure kvm_create_max_vcpus test won't hit RLIMIT_NOFILE 2021-12-22 09:32:34 +01:00
kvm_page_table_test.c KVM: selftests: Silence compiler warning in the kvm_page_table_test 2022-05-12 12:30:24 +02:00
Makefile KVM: x86: selftests: test simultaneous uses of V_IRQ from L1 and L0 2021-09-23 10:05:07 -04:00
memslot_modification_stress_test.c KVM: selftests: Fix build regression by using accessor function 2022-12-31 13:14:44 +01:00
memslot_perf_test.c KVM: selftests: Unconditionally use memslot '0' for page table allocations 2021-06-24 11:47:48 -04:00
rseq_test.c selftests: kvm: Fix a compile error in selftests/kvm/rseq_test.c 2023-01-18 11:48:47 +01:00
set_memory_region_test.c Merge tag 'kvm-s390-master-5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD 2021-07-14 12:14:27 -04:00
settings selftests: kvm: Raise the default timeout to 120 seconds 2021-02-09 08:17:08 -05:00
steal_time.c x86: 2021-09-27 13:58:23 -07:00