[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <D1G5P3B6BWGG.3EOYXHHI5MYPZ@kernel.org>
Date: Wed, 22 May 2024 15:02:19 +0300
From: "Jarkko Sakkinen" <jarkko@...nel.org>
To: "Edward Liaw" <edliaw@...gle.com>, <shuah@...nel.org>,
Mickaël Salaün <mic@...ikod.net>,
Günther Noack <gnoack@...gle.com>, "Christian Brauner"
<brauner@...nel.org>, "Richard Cochran" <richardcochran@...il.com>, "Paul
Walmsley" <paul.walmsley@...ive.com>, "Palmer Dabbelt"
<palmer@...belt.com>, "Albert Ou" <aou@...s.berkeley.edu>, "Alexei
Starovoitov" <ast@...nel.org>, "Daniel Borkmann" <daniel@...earbox.net>,
"David S. Miller" <davem@...emloft.net>, "Jakub Kicinski"
<kuba@...nel.org>, "Jesper Dangaard Brouer" <hawk@...nel.org>, "John
Fastabend" <john.fastabend@...il.com>, "Dave Hansen"
<dave.hansen@...ux.intel.com>, "Andrew Morton" <akpm@...ux-foundation.org>,
"Muhammad Usama Anjum" <usama.anjum@...labora.com>
Cc: <linux-kernel@...r.kernel.org>, <linux-kselftest@...r.kernel.org>,
<kernel-team@...roid.com>, <linux-security-module@...r.kernel.org>,
<netdev@...r.kernel.org>, <linux-riscv@...ts.infradead.org>,
<bpf@...r.kernel.org>, "kernel test robot" <oliver.sang@...el.com>,
<linux-sgx@...r.kernel.org>
Subject: Re: [PATCH v5 57/68] selftests/sgx: Compile with -D_GNU_SOURCE
On Wed May 22, 2024 at 3:57 AM EEST, Edward Liaw wrote:
> Add -D_GNU_SOURCE to HOST_CFLAGS and remove #define _GNU_SOURCE.
>
> Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX")
> Reported-by: kernel test robot <oliver.sang@...el.com>
> Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@intel.com
> Signed-off-by: Edward Liaw <edliaw@...gle.com>
> ---
> tools/testing/selftests/sgx/Makefile | 2 +-
> tools/testing/selftests/sgx/sigstruct.c | 1 -
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile
> index 867f88ce2570..272da790d9ae 100644
> --- a/tools/testing/selftests/sgx/Makefile
> +++ b/tools/testing/selftests/sgx/Makefile
> @@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy
> endif
>
> INCLUDES := -I$(top_srcdir)/tools/include
> -HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC
> +HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC -D_GNU_SOURCE
> HOST_LDFLAGS := -z noexecstack -lcrypto
> ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \
> -fno-stack-protector -mrdrnd $(INCLUDES)
> 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>
Reviewed-by: Jarkko Sakkinen <jarkko@...nel.org>
BR, Jarkko
Powered by blists - more mailing lists