Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp338184lqo; Wed, 8 May 2024 00:56:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJAL+TVP0jBQtHe5mSoJp9LIzSOccbiNtxiKQO32lUFePaKCp2ZeNW3sXbJiDva1kVmT/NcuTmtsOLkI2CJe8pMcLPqfz+a9IU5VdIqw== X-Google-Smtp-Source: AGHT+IGtzIHkGucyios1nrVnzrjwqlRZeUddTd97JZrPPTVl3Ly7KyvinLTN+ARLzTIH8YCcHh5C X-Received: by 2002:a05:6300:8a07:b0:1af:ad04:7504 with SMTP id adf61e73a8af0-1afc8dc89ffmr2229919637.59.1715154980429; Wed, 08 May 2024 00:56:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715154980; cv=pass; d=google.com; s=arc-20160816; b=vcFgo6g9VYLcuFnrvG0b/zRUNbNmMPOtwk5FAsbOsM+3P0pfW20KoKeePfdOjxKdxP nwDfSrVokaSCNXsZkMx/htuX169QfGSLnYTlZ+/gMAuYo+AYtceXg+p0WS8GmaZc1aJJ ry56vu4OVMNop78YGoyVSFFFUhi4Mu0LVv9Effki+wdB4m0+r9orRWz4MpXU3w8+a9kJ y3BMICBvrhoQWBT82q1lVBymrzM6ebeTJRlOvI7b+zRJBQ5CDl9qzMjNkqE4qvrhXiE/ 7UMkmUFfUMtyUhUB3MWrABbB0pd6fDdGRB1+ERn4yFcQbnDP/wds/uLmrYzAWfhXiA/3 g+Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZGXLa1YsqTwiRT0ho38f4aI+nF8FqtHVOelpF+966yU=; fh=L75ITwoTus2w/61pHzuQmassTXU6itvzvfOEGxtmhPM=; b=PMTHwmJ3G0DuT7lRF9QEiR2WZ//kwOTMLKjIJTOeoNWRG6LTmH2JBnCPwMjnSm3owT BXRqVUdMJRpl77yuK4O99C5j8gsPZl9h5rVTRAk3U9trhjrGpvdah+QV+b5SHkyyQde5 7SrGhvpQ2a8TTETXHdnFiJqAXfNPPbJH6bgMH9VAzm492wFp6IHfI4osG8ZvLnAw26V+ HZCtHFJkcSF8/36+Y/3GIs9wOUDohu2zYTPjd4aEXfjS8s0hEUSP1RlnMBlcpgMy4Bfb 6LEmFWrrtuSVYJ+NSy8f1COIhTA1661phsdXgXrmZMjKtTx8JQ7GKoYkB39K7HfVyHil TrVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KEvnbxqA; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-172857-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l15-20020a170903120f00b001eb0eb07841si10861188plh.203.2024.05.08.00.56.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 00:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172857-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=@collabora.com header.s=mail header.b=KEvnbxqA; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-172857-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 718F8B24E4A for ; Wed, 8 May 2024 07:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCC2B4D583; Wed, 8 May 2024 07:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="KEvnbxqA" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 3ECA83B798; Wed, 8 May 2024 07:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715154574; cv=none; b=OQbHT9mSNWz9uOkAhmH8FXbJAZDAZTlhLS9/yESoJDQIKyX3Al0OUdLT/B8s+4hY6sdgHO7rZhpbXY6BgA6XMQAp9eGWq8cFYVXqJIJhsRCOsLzgWVjGrf2Atp0ZxZS40onMtt9tN4XK4TFvgUX872cMF6o6SM5CEr4/aX4HB8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715154574; c=relaxed/simple; bh=8PWy0ITa9jnxFTKoYDWtuSImZrTYjBMlQF9GPAuUOBg=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=PCBjnEBjgU2GldwgR9iqDt5HjsVABstIYIzek0gTOR/AZPjVnFC92wqQRpUoVaCpoNj5or5vtwIjsgiMiWpRaF6zvpgw/Jx4Z1yf12a9iA0CSKT3Ht9o7KFiS3cLgEDBOGFhFCWn5yWvDdTcqExeDV8ekG34+oaFgxYz4CDGGsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=KEvnbxqA; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715154571; bh=8PWy0ITa9jnxFTKoYDWtuSImZrTYjBMlQF9GPAuUOBg=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=KEvnbxqA5HD2jB+VWvKwvG3YXfqUotT4Bkl4uQH0q0oK5VnhjF6MO+MqerATU5/RC Y+BjpS26VndPgn5vG9cvR9At8ZpJqih78Hh4swgTcASkb6HWUxS8yKkW5N+uvz+Z44 8RPq70iB/IBhOsV1lHkcHxdcS/mG/mbr07OehUIEFfl/TyKigIhjfBDyfWr6Da+wFb rLQshr8T7f94AMbl8DJYky2cGhgU2ftJvta1aJNxTlsOeO7Ql44aESIlmjXFGyEu4B oRVKyoEMrmhYjlpMS39FYiJT3aLeyURKpfKSjjAVOlYRIiz7EniNgjtumQmcLWaWE+ cWezKmvFYEKtA== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 428403782163; Wed, 8 May 2024 07:49:04 +0000 (UTC) Message-ID: Date: Wed, 8 May 2024 12:49:23 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-input@vger.kernel.org, iommu@lists.linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-actions@lists.infradead.org, mptcp@lists.linux.dev, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, bpf@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile To: Edward Liaw , shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Catalin Marinas , Will Deacon , Nhat Pham , Johannes Weiner , Christian Brauner , Eric Biederman , Kees Cook , OGAWA Hirofumi , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , =?UTF-8?Q?Andr=C3=A9_Almeida?= , Jiri Kosina , Benjamin Tissoires , Jason Gunthorpe , Kevin Tian , Andy Lutomirski , Will Drewry , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Paolo Bonzini , Sean Christopherson , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Paul Moore , James Morris , "Serge E. Hallyn" , Andrew Morton , Seth Forshee , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Steffen Klassert , Herbert Xu , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Matthieu Baerts , Mat Martineau , Geliang Tang , Willem de Bruijn , Fenghua Yu , Reinette Chatre , Mathieu Desnoyers , "Paul E. McKenney" , Boqun Feng , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen References: <20240507214254.2787305-1-edliaw@google.com> <20240507214254.2787305-3-edliaw@google.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240507214254.2787305-3-edliaw@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/8/24 2:38 AM, Edward Liaw wrote: > 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 > Closes: https://lore.kernel.org/oe-lkp/202404301040.3bea5782-oliver.sang@intel.com > Signed-off-by: Edward Liaw Reviewed-by: Muhammad Usama Anjum > --- > 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..26ea30fae23c 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 $(KHDR_INCLUDES) -g $(INCLUDES) -fPIC > 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 > #include > #include -- BR, Muhammad Usama Anjum