mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-23 19:11:51 +00:00
Revert "selftests/sgx: Include KHDR_INCLUDES in Makefile"
This reverts commit 2c3b8f8f37
.
The framework change to add D_GNU_SOURCE to KHDR_INCLUDES
to Makefile, lib.mk, and kselftest_harness.h is reverted
as it is causing build failures and warnings.
Revert this change as this change depends on the framework
change.
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
cee27ae5f1
commit
3da1640235
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy
|
|||
endif
|
||||
|
||||
INCLUDES := -I$(top_srcdir)/tools/include
|
||||
HOST_CFLAGS := -Wall -Werror $(KHDR_INCLUDES) -g $(INCLUDES) -fPIC
|
||||
HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC
|
||||
HOST_LDFLAGS := -z noexecstack -lcrypto
|
||||
ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \
|
||||
-fno-stack-protector -mrdrnd $(INCLUDES)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 2016-20 Intel Corporation. */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <assert.h>
|
||||
#include <getopt.h>
|
||||
#include <stdbool.h>
|
||||
|
|
Loading…
Reference in a new issue