Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp291688lqp; Wed, 22 May 2024 05:02:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVugmVTcb/T6U8XNhF5P1yrbIL5NCs61G0MgNTxqgCkuhb+OIlpcOV/BNwj7O4BIqh/MLyFxssJ1WYvtEMX6lyyeUaIyIk1+eSDIngSw== X-Google-Smtp-Source: AGHT+IEI8Pc9xpFECrTnPfz3iz2IIwBOgjCBTK9O5IDi2dIWXlw9UHVnVpfyN0XhLf+qsOXMelUV X-Received: by 2002:a17:90a:bf0b:b0:2ba:1c87:d677 with SMTP id 98e67ed59e1d1-2bd9f46ae39mr1592053a91.12.1716379365161; Wed, 22 May 2024 05:02:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716379365; cv=pass; d=google.com; s=arc-20160816; b=ScwderFSf7kXUTd2bwal7SrcQGVFEvLP/Mv1Vv/CmDiqGKQjWxf2TdiQcUWg2ThZKX xDBhz3uguGoUnCqNIeywh2fhOjeXh0HtBneVQ1Yq/vkjaMABHEMZMhN+fAIomIxZ3+8u P5fkuMYf/6+UF+3KmXM9EcShvaVXfCIbsY3mMWeO1+7KKrHl6HQsb+oiF2cJ+Nyxf7nB l18Hp0cyZeonuhus2C2NsuMZl7SAX/39yPpexPV3Mev9Lfn8hPeN5mwu9xY0r0c0+A60 WwNmQjDcpQKVefaZB+lo6td45dnwT8RAWPST5X/ydZ9wPA39IZ80Y1WllTmWACXKX+KC 7Caw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Jr+VEfVrjCGNi2iZvyFGm12e0IQtoLdnzuborYr46pg=; fh=D8KelpXYH+yaEYPBDcWaK0mKNFw5pyOkvGEzZmPXUmM=; b=A8jiqTvKijUtq4ucYAmSqSapmooMooEIyRyXWq5KE9ZalGiGAiLSCR8nXCRQKFt8kc DWDl4r1je/EDguHoGHrtTHGVqNdzZtXnZjrLDy6//ktT3E31qstFGWMsXPIxSu4uBmNC YgPh4rIjG+GVrDfBa2b+zZ61HF24JbDFDFEAcXQbVyaNZThXgvuWZ94Q5md/iN2N2th+ t4g/cu2UoOpuzEvEx6Bf2r3AsJRcL8i+NqTwe113Jz73A7SGb3sLh3s2AUQERPgvaKvb 6EYirF6eC/ea7XgSlEh+oaRXGeK2E7YUrfEQXwjj/lVu203DkQlgE1USmPWTymdwbgxE 9Tzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nelYOGVG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b6290d1949si3411103a91.183.2024.05.22.05.02.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nelYOGVG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0D188B21F08 for ; Wed, 22 May 2024 12:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3317C13D628; Wed, 22 May 2024 12:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nelYOGVG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D3E07E567; Wed, 22 May 2024 12:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716379347; cv=none; b=R7WVlurDdKi28QbABouA1RcZ3w3f59zrrrdhWTdeQItqi8SJHI0+SMMGfbxwLFLfErwA2hMRgTNX593phLZcaLO85JvRBXz4jnySWk81Psg9C9b5OLJ3SsyrOBtBxhgK1cSuRyRaAcscjQtE1h4oWRg4gPcPH2uUBlN0LfuKTvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716379347; c=relaxed/simple; bh=EMJVT5ZakDgrWxq+Pzu18YJ1rO0NK5CfLgZ0nMojMYU=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=cODyXcsgilbrdorx/IdwE875wq9/a0OhTUxSR4u0jK2hWo1jMt4A+UbclZaMDrfDRYT5E8Mpe53u1PxXi8QeEquZicmRIFPJqtEgyAlNgzSSszN6gNaMBfF1X75slUIKhKeA5vJ1iwC3pRerbyreKZiavMZf66J8gRN8EU3Uj/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nelYOGVG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85904C2BD11; Wed, 22 May 2024 12:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716379346; bh=EMJVT5ZakDgrWxq+Pzu18YJ1rO0NK5CfLgZ0nMojMYU=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=nelYOGVGN6SeA/MqZPRrHYH3CNr81B6sLCq+x2diVvbQ/bjR2LAKWPe2UjlLFI76V 4BxzcsJbNXwbJH1mUzNt8/c6ww8iujAX9repqNTCFMl3o1cD32xzBOfID9S5hd2SQY hIpgm23AwqT4s+QO23a9cDRtMBEexa2UpkCc77kEhq6n/uwRJGmm/EeUOQHBLOT8FC hHGbvNvdVWZoDhGwLf2cn+lSmMOrwqxQ49xatAopsHB9N7gDGIOeL60WEp/oAlLnoS x5WGOuEzlh9k18P8tsZYMm8H9toKZ/NnCe/KmhseHzTPiIkNGHqXtgpaf+2ibeR04N c+17AzCNNwi2A== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 May 2024 15:02:19 +0300 Message-Id: Cc: , , , , , , , "kernel test robot" , Subject: Re: [PATCH v5 57/68] selftests/sgx: Compile with -D_GNU_SOURCE From: "Jarkko Sakkinen" To: "Edward Liaw" , , =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= , =?utf-8?q?G=C3=BCnther_Noack?= , "Christian Brauner" , "Richard Cochran" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexei Starovoitov" , "Daniel Borkmann" , "David S. Miller" , "Jakub Kicinski" , "Jesper Dangaard Brouer" , "John Fastabend" , "Dave Hansen" , "Andrew Morton" , "Muhammad Usama Anjum" X-Mailer: aerc 0.17.0 References: <20240522005913.3540131-1-edliaw@google.com> <20240522005913.3540131-58-edliaw@google.com> In-Reply-To: <20240522005913.3540131-58-edliaw@google.com> 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 > Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@= intel.com > Signed-off-by: Edward Liaw > --- > 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/selftes= ts/sgx/Makefile > index 867f88ce2570..272da790d9ae 100644 > --- a/tools/testing/selftests/sgx/Makefile > +++ b/tools/testing/selftests/sgx/Makefile > @@ -12,7 +12,7 @@ OBJCOPY :=3D $(CROSS_COMPILE)objcopy > endif > =20 > INCLUDES :=3D -I$(top_srcdir)/tools/include > -HOST_CFLAGS :=3D -Wall -Werror -g $(INCLUDES) -fPIC > +HOST_CFLAGS :=3D -Wall -Werror -g $(INCLUDES) -fPIC -D_GNU_SOURCE > HOST_LDFLAGS :=3D -z noexecstack -lcrypto > ENCL_CFLAGS +=3D -Wall -Werror -static-pie -nostdlib -ffreestanding -fPI= E \ > -fno-stack-protector -mrdrnd $(INCLUDES) > diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/self= tests/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. */ > =20 > -#define _GNU_SOURCE > #include > #include > #include Reviewed-by: Jarkko Sakkinen BR, Jarkko