kselftest/alsa: Ensure _GNU_SOURCE is defined
authorMark Brown <broonie@kernel.org>
Thu, 16 May 2024 15:27:33 +0000 (16:27 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 29 May 2024 18:23:57 +0000 (12:23 -0600)
commit2032e61e24fe9fe55d6c7a34fb5506c911b3e280
tree94e0c40436bae5b050446ff2c0eda0f18d8c652c
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
kselftest/alsa: Ensure _GNU_SOURCE is defined

The pcmtest driver tests use the kselftest harness which requires that
_GNU_SOURCE is defined but nothing causes it to be defined.  Since the
KHDR_INCLUDES Makefile variable has had the required define added let's
use that, this should provide some futureproofing.

Fixes: daef47b89efd ("selftests: Compile kselftest headers with -D_GNU_SOURCE")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/alsa/Makefile