Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp130693lqo; Tue, 7 May 2024 14:46:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXc2LoYSiad8A3tsvkXuaTnLWLM2RlqNQkc2+dXwbH2c+3A9ZrrU7mZBb65J9lZyOWvAnqtnUuBjaprO++GSaBuJR12w8ZQBQSkoIYMnw== X-Google-Smtp-Source: AGHT+IHYSKz/5kLoz4y8b2twdYhwIUAyvxJ8xloJgaE3mQh+dZ9TO9ise/mIXgCvDr/Wruy2RhaZ X-Received: by 2002:a17:906:2555:b0:a59:9fc8:38be with SMTP id a640c23a62f3a-a59fb94baacmr39186966b.26.1715118371480; Tue, 07 May 2024 14:46:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715118371; cv=pass; d=google.com; s=arc-20160816; b=btTJtg/mLLG7QcnWQIOQmfjzwHCa7T4Q3S1vlj1JK358wIbMQnI7rIiU4VGMNzFc5M tk8ULntaQTdYUsFmcPsEQj8H+HI59KHl/wtadKcfioK0HW72HHretGRS8JAM43as5Vh6 HTid/7oXRUAN3nO/w2LyBuy48FQEclw0nh0pZQqFNGaWlA1xrOfQpGRpwylOj9rk/AAw kKHgLEhbLJD2y9L1w/W1QQ4vropEq+GJvuVtKHXikNGItzhZ3omnTrNhz7WBYhi5bHNC OIWGxxp5CVEkfMUdsW/qeram/ZXyTKEJvBri4tHahUOxNYBEwnmAiPQbwtasriCVh2vR OSyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=PxqkolGdAHnL6PdsZ65UERLJRMYbiNDsN8K6maFf6SM=; fh=sS2kNMR5DTXqsi5j0EHZD3qg0V9IBLjv1/Zugre0oHw=; b=KxdUbGM1Cji8kS96oXBGiwamb2SfuesTZxxvm3qYQ6fPwVk4F+BLbsRhDKHx5j6kzZ kr7Q+su47dP8rZhqzcy0bgczIGXPoeq4Texqx1wF8KmaSEzlwHj5QJrN0uxvRn3WcVl5 ASfgEXEf/dGGrllMCVQprJYR2WUpAFUD19kRaTvES30H7ic6R/5t9NhVtrwiMz77EWlr lOi0rl32sKiqKw8Am0k6/oY8V4hWElIEtrtcyv8urkaXZwtyPsCGhamTn/tnXq5KRHGK y4K8rJ0JeosALdv2F7Ix2YcFdOO2Es4JhVONSYqR1TiDV6KROIp+kjecfgLvUA4sU8eR 8Q/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EAOb0VTr; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-172226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hd12-20020a170907968c00b00a59cb1e75f9si2951513ejc.696.2024.05.07.14.46.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EAOb0VTr; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-172226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0ABD51F255B5 for ; Tue, 7 May 2024 21:46:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33F6F14B963; Tue, 7 May 2024 21:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="EAOb0VTr" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56DB8132817 for ; Tue, 7 May 2024 21:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118340; cv=none; b=jAak/H3O3oUoQZZ3W5S0H4YKjcVxgPEuYeECKG9ydVdI2q6TMk7c66muY7c7+rmLOY4ulgQDqfjM2dSvWLvzN3Lr2/tMZhqe2KiXBTLKM46x/HfhACzJKbnZq5ahMlBZUFWDXFd/7pl0/uvLUw45s4mMPKGWOnereCtaAS6WKmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118340; c=relaxed/simple; bh=u1WhBmcckAt2rdhPGlHMEW1L6rz0lHqek1WxWKv+Lpk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=rGSTGobSTD7Aa0gpKU8Gf87VtiAf0C459HZCKxEe/+kN4R0YzON8m3wOkLgk0TDaYoG6BxFqCYRLKWIb7TCDjdCHsMEmo321cRXgpvqy9f8DS3mwTt+7qscoRfEbpwCFMs+dNclfNGklYKXCrs3hP6cqJRDgWjw9xT4XFbk53K4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=EAOb0VTr; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de604d35ec0so6913899276.3 for ; Tue, 07 May 2024 14:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715118336; x=1715723136; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=PxqkolGdAHnL6PdsZ65UERLJRMYbiNDsN8K6maFf6SM=; b=EAOb0VTrPa0tgInHil+vnvBckQGZucDqfwvtGJfDLsKxwUt6aDMz9FzfrLNEiKUiWx A82FDY5UaQ3tDdNFRZxcjHUsG41rlv92k4eKKpZYWkYoWQsOO/xh7oRNXBkIT7COUfwN Wqiu85thMq9c2nhmYYFmQ7jwvh0zx8Vn1B+Vxb88WGBqDtCl5BDXOnxGVrZlODe0VFnh HnjqSQ3H5IkMdC+93OwNMVM52Pfid1yMsQyVoJjGrPgHTZgsDcH9TN39O1Xst2WX10ZQ c15OvAuaaV6COMyBPjRJyQ1xTAusna1000y7vafImuBeX/te9uk9Q0HIehMo19kbpOTI y5rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715118336; x=1715723136; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PxqkolGdAHnL6PdsZ65UERLJRMYbiNDsN8K6maFf6SM=; b=L9voctjVzm4ZKSu8nAufrANGfSuSV9uM4zEyKjRFNbWgE1Px80BSljNn6TyY61q+cO ZtI2V1dGnm7Q5Q4HpnyNH4BXQLOL762VjRbGR3UneNr9bbRkyQI1hk9ix5r7ezKADc4B DHGzslJIojeaSa5dk/Vszsb5YX0vBXMpCaEQg9zX3Z/PSZMZ+Sb6UbKwH27H0h39TjNk 6kPk69M6Buh8REtN9C0m391DEaPmAHUuNBR7+Jhn7AhrvfXXc/26byAb/XLh5rsMltwr M1bGXG3l/LBvcdAp53dAK3ppuPXlk/UfFI3OhfQxCbMFK6Mlh2ii6Y14SAjGYOSGlRg1 96Bg== X-Gm-Message-State: AOJu0YzSdfZA0hT5sPS1dy0cUHlA8TkR2DezoP91tK43bLZnpr1WqLew Vvz6DhbdvalZviHvSZc7bD6Veo697X8r6P3rn2x/HtdK3hSJen3B1yy8eFOHJCeUE6GIZilQikR qKg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:1007:b0:deb:8bc5:eb5b with SMTP id 3f1490d57ef6-debb9d87cd3mr271839276.5.1715118336096; Tue, 07 May 2024 14:45:36 -0700 (PDT) Date: Tue, 7 May 2024 21:38:27 +0000 In-Reply-To: <20240507214254.2787305-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240507214254.2787305-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Message-ID: <20240507214254.2787305-3-edliaw@google.com> Subject: [PATCH v2 2/5] selftests/sgx: Include KHDR_INCLUDES in Makefile From: Edward Liaw To: 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=20Almeida?=" , 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=20Sala=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=20F=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 , Muhammad Usama Anjum , Edward Liaw Cc: 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 Content-Type: text/plain; charset="UTF-8" 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 --- 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 -- 2.45.0.rc1.225.g2a3ae87e7f-goog