selftests/sgx: Include KHDR_INCLUDES in Makefile
authorEdward Liaw <edliaw@google.com>
Tue, 7 May 2024 21:38:27 +0000 (21:38 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 8 May 2024 23:08:46 +0000 (17:08 -0600)
commit2c3b8f8f37c6c0c926d584cf4158db95e62b960c
treef51c29d6507c65e867ab254531bc85b4efec665e
parentdaef47b89efd0b745e8478d69a3ad724bd8b4dc6
selftests/sgx: Include KHDR_INCLUDES in Makefile

Add KHDR_INCLUDES to the CFLAGS to pull in the kselftest harness
dependencies (-D_GNU_SOURCE).

Also, remove redefinitions of _GNU_SOURCE in the source code.

Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@intel.com
Signed-off-by: Edward Liaw <edliaw@google.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/sgx/Makefile
tools/testing/selftests/sgx/sigstruct.c