mirror-linux/tools/testing/selftests/kvm/lib
Hisam Mehboob 2d42c7cf1a KVM: selftests: elf: Include <endian.h> instead of <bits/endian.h>
<bits/endian.h> is a glibc-internal header that explicitly states it
should never be included directly:

  #error "Never use <bits/endian.h> directly; include <endian.h> instead."

Replace it with the correct public header <endian.h> which works on
all C libraries including musl. Building KVM selftests with musl-gcc
fails with:

  lib/elf.c:10:10: fatal error: bits/endian.h: No such file or directory

Fixes: 6089ae0bd5 ("kvm: selftests: add sync_regs_test")
Signed-off-by: Hisam Mehboob <hisamshar@gmail.com>
Message-ID: <20260409164020.1575176-4-hisamshar@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-05-23 10:05:26 +02:00
..
arm64 KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
loongarch KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
riscv KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
s390 KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
x86 KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
assert.c KVM: selftests: Define _GNU_SOURCE for all selftests code 2024-04-29 12:49:10 -07:00
elf.c KVM: selftests: elf: Include <endian.h> instead of <bits/endian.h> 2026-05-23 10:05:26 +02:00
guest_modes.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
guest_sprintf.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
io.c selftests: kvm: Uses TEST_FAIL in tests/utilities 2020-03-16 17:59:11 +01:00
kvm_util.c KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
lru_gen_util.c KVM: selftests: access_tracking_perf_test: Use MGLRU for access tracking 2025-05-16 12:58:21 -07:00
memstress.c KVM: selftests: Replace "vaddr" with "gva" throughout 2026-04-20 14:54:17 -07:00
rbtree.c KVM: selftests: Keep track of memslots more efficiently 2021-05-27 07:45:54 -04:00
sparsebit.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
string_override.c KVM: selftests: Add strnlen() to the string overrides 2023-08-02 14:41:59 -07:00
test_util.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
ucall_common.c KVM: selftests: Replace "vaddr" with "gva" throughout 2026-04-20 14:54:17 -07:00
userfaultfd_util.c KVM: selftests: Use s64 instead of int64_t 2026-04-20 14:54:16 -07:00