diff options
| author | Edward Liaw <[email protected]> | 2024-05-07 21:38:27 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2024-05-08 23:08:46 +0000 |
| commit | 2c3b8f8f37c6c0c926d584cf4158db95e62b960c (patch) | |
| tree | f51c29d6507c65e867ab254531bc85b4efec665e /tools/testing/selftests/sgx/sigstruct.c | |
| parent | selftests: Compile kselftest headers with -D_GNU_SOURCE (diff) | |
| download | kernel-2c3b8f8f37c6c0c926d584cf4158db95e62b960c.tar.gz kernel-2c3b8f8f37c6c0c926d584cf4158db95e62b960c.zip | |
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 <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: Edward Liaw <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/selftests/sgx/sigstruct.c')
| -rw-r--r-- | tools/testing/selftests/sgx/sigstruct.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c index d73b29becf5b..200034a0fee5 100644 --- a/tools/testing/selftests/sgx/sigstruct.c +++ b/tools/testing/selftests/sgx/sigstruct.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2016-20 Intel Corporation. */ -#define _GNU_SOURCE #include <assert.h> #include <getopt.h> #include <stdbool.h> |
