Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1513797lqm; Thu, 2 May 2024 18:47:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVY/6ReNCDVvNUq+M+tl5C3qCpFiOkcr9Ch756v4se+1UcE6nK4H6vhvlS9kqCi6I/DuBe1Ew1egUmdYqonJB4RMux9IwnJml/bV262w== X-Google-Smtp-Source: AGHT+IGBetwKCRhBZ2x8bnOix6ez5Vb9TavW59WoDsRNa/HiXYiKfnJaM1g2wc4LMO5MjG2134Wk X-Received: by 2002:a05:620a:2b91:b0:78d:5d86:ee3a with SMTP id dz17-20020a05620a2b9100b0078d5d86ee3amr3277388qkb.27.1714700825790; Thu, 02 May 2024 18:47:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714700825; cv=pass; d=google.com; s=arc-20160816; b=EjKVjKdWvnbPuOBJ3BkzDbQKcCXbXb+gOAayGMTm7OMILRbbBUGNjPmc8RISMvbmsC E5vpzLDOgX047VGdT9Clq7raldA8SgqwG9/yRtsxmpBWJ6g/jKoDkPaJH1Pe/SVDJgki 5jdk9v35dVirTfoGnP3C6JYKK1mkymDYCLCwcAkye5SGFwK0ZLHWDnu2k7UnccGn0nzQ RHbYkjipoUBcKuxEqS91MjwIE77Jrdc0VIYNU5wueAEPgQYqs5XplwJD4jRs0uhc9PXk PwUQmUo31X9yNx+YsATGHtAmt1OlL0WHXAZ4pbG1yR6YRmsYm+EMAlFcfd1jCIHNVeG0 ksNQ== 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=bzubsJByde7zWpkxTnxn5MMs5m3PTroyAGQODdlWgR4=; fh=IyDvhutHulPGy2X2DJ6OJ9ZSIFECppsXQLx6GIQyhMM=; b=jem1ztoB4yXb6bNnYXRNJHrNAxHjKVB0WC41wuQKesGhGQNsuSQu08SZlJ/S/MZVj5 D5tkh8iXDF0iuyHVf9VDc6X45FQo8G8X4Z8dwMb7b5BUJlgWMff36aoB0O7myPCFkrJV Pn2OcsdPq4gDcLj2AVgASIBJoDkEBr8kQCPlWGhxvl9GoG0FpnaqRNUJtMVXUeTQAH/V ai3kWyI4A/SmhqlGlj4dNMRLzOmdfxe8NthTkd/RIp8AM+wiU/UA7daGtXFJOS+ldVK8 UUVTbKKHL0r6ihfklFr8GFD3e7CKds8wUywkurPWtM8Yv4WAfgpH4Wqr3UEYW4LFztx5 SABw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PPjALbxq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s17-20020ae9f711000000b0078d6572ea5asi2180607qkg.702.2024.05.02.18.47.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 18:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PPjALbxq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167158-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C8D61C202ED for ; Fri, 3 May 2024 01:47:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39747168B8; Fri, 3 May 2024 01:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PPjALbxq" 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 40B95DF5B; Fri, 3 May 2024 01:46:50 +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=1714700811; cv=none; b=hRq6vBYf9cFOof9/+Twza/+vVQJejzZSlzxN+ln2C0CQcDspjuN9iF9AQv3oHYIylt8M9fE9/fyywwLNXapcWfgdr66hWlLFqirC2GXIxcmZo844P95+epZZAFL9bDB31e9TyETuZ60KZziG6d0369jMSSNXo8vyC95O1UCdOhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714700811; c=relaxed/simple; bh=JKgTE6YUHTKq659Fh+4WxOwvtYqFaO/UHPdHf0PyxU8=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=RJ4/L/ZJJSRT/o+dlvt/gOFYSILX/mwZESqCh5/MzQeJPNZgvPkPR5RRIYomfkwQBmtfnvVogUrmlWqyAKlFOINpp5ULJaz3xKJf0UzXy3MSm/geQAinPyMhsqix4iyq3chN5hufVf39WImVSpQsbVu/ML3KR+YqnD9V6mxcMEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PPjALbxq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D76EC113CC; Fri, 3 May 2024 01:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714700810; bh=JKgTE6YUHTKq659Fh+4WxOwvtYqFaO/UHPdHf0PyxU8=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=PPjALbxqtye4I1DIDKjHVl3qcro5MlE9tek/ju94lTHQ9wY/pjbVv71TylRbsvFvW CreAHaLMHr1FL/n18IY54+vHGoxxHhpj2LSSdkdGE2XA5WU4uy97Bq/ZcEdTxqTaJu Nr5j403GWzpYiPXxaJV0a73HDuaPrDeeRiTQAyNx0x50uJCVjldPII9JL+L7BRBCF7 VOEwB9bAfcnBooec5W605A00+FEMqc97nE1f9fjytDNUkxb0cxbgGBDl+GZY4E4r6t Qqc4adGqWtNz7GkLUA41T2o/j6mF1PCbadNmSnqlRreB2PpKAqYryTJoC3Nnbgq+N7 BCl62C/NQ2Row== 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: Fri, 03 May 2024 04:46:43 +0300 Message-Id: Cc: , , , , , , , , , "kernel test robot" Subject: Re: [PATCH v1 01/10] selftests/sgx: Compile with -D_GNU_SOURCE From: "Jarkko Sakkinen" To: "Edward Liaw" , , "Mark Brown" , "Jaroslav Kysela" , "Takashi Iwai" , "Jiri Kosina" , "Benjamin Tissoires" , "Sean Christopherson" , "Paolo Bonzini" , "Bongsu Jeon" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Alexandre Belloni" , "Dave Hansen" , "Andrew Morton" , "Muhammad Usama Anjum" X-Mailer: aerc 0.17.0 References: <20240430235057.1351993-1-edliaw@google.com> <20240430235057.1351993-2-edliaw@google.com> In-Reply-To: <20240430235057.1351993-2-edliaw@google.com> On Wed May 1, 2024 at 2:50 AM EEST, Edward Liaw wrote: > 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced > asprintf into kselftest_harness.h, which is a GNU extension and needs > _GNU_SOURCE to either be defined prior to including headers or with the > -D_GNU_SOURCE flag passed to the compiler. > > 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 | 2 -- > 2 files changed, 1 insertion(+), 3 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 > > 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..a0c2de7c5302 100644 > --- a/tools/testing/selftests/sgx/sigstruct.c > +++ b/tools/testing/selftests/sgx/sigstruct.c > @@ -1,7 +1,5 @@ > // SPDX-License-Identifier: GPL-2.0 > /* Copyright(c) 2016-20 Intel Corporation. */ > - > -#define _GNU_SOURCE > #include > #include > #include > -- > 2.45.0.rc0.197.gbae5840b3b-goog Reviewed-by: Jarkko Sakkinen BR, Jarkko