[PATCH] KVM: selftest: Define _GNU_SOURCE for all selftests code
Sean Christopherson
seanjc at google.com
Mon Apr 29 13:45:25 PDT 2024
On Tue, 23 Apr 2024 12:03:08 -0700, Sean Christopherson wrote:
> Define _GNU_SOURCE is the base CFLAGS instead of relying on selftests to
> manually #define _GNU_SOURCE, which is repetitive and error prone. E.g.
> kselftest_harness.h requires _GNU_SOURCE for asprintf(), but if a selftest
> includes kvm_test_harness.h after stdio.h, the include guards result in
> the effective version of stdio.h consumed by kvm_test_harness.h not
> defining asprintf():
>
> [...]
Applied to kvm-x86 selftests_utils, thanks!
[1/1] KVM: selftest: Define _GNU_SOURCE for all selftests code
https://github.com/kvm-x86/linux/commit/730cfa45b5f4
--
https://github.com/kvm-x86/linux/tree/next
More information about the linux-riscv
mailing list