Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp72605lqo; Thu, 9 May 2024 13:01:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUngBR0RgN8wskQc/wevDbVQoeEUOM0hGAnYapiaD2BuEpk6JKUXerjyHtbWSTItHkoi9qrDa5h+B8LHTkFFwQdwP82o2aM5jAyWMQVlg== X-Google-Smtp-Source: AGHT+IFGYPSm+eZhtoeoIG8ILqmRa7esp878/jHigMR9RxRH3MqI0f8TNz4/tm9Aw4isdmgZNh0F X-Received: by 2002:a17:902:7c8f:b0:1e2:718c:61e with SMTP id d9443c01a7336-1ef43d2ec8bmr6935385ad.27.1715284892294; Thu, 09 May 2024 13:01:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715284892; cv=pass; d=google.com; s=arc-20160816; b=bfUZUdf4kiY8I4hxBeN5lRCj3UtEbz3hnNz6L/TSupP0tmJCLSVIj2rw8IjqmBgVMA FjagH01lBB/dBNeRyyudgrVg7sgxhEhLuzOUojfzCCQIQhfzFzd00nfgvJvYrU5B65LD UFF/tsCZJATIaztaPTiFAIYoGIySu29evp6yobUQ2tPiOTQ3eTdO5sXJ3RbDl8s1+Uqh jIvrt/EHzK17S4pi6o+igaF9cdSOiPCg4i6qBcnH92aYk6Hhuy1XU87PzXJReeDEm/PA BTRBwa7aI06BCSlwWWGn6gRvxeujHfeZ7PEbkPz3o8J8aEB0q7epcEPG7qp6qDwpnnTk w41g== 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=HYbl9V+AVk19HnuKFt5pVD1HiMf/Dt0RSFiQIU6DF6Q=; fh=dZzj9E3ysSYMp92N4eFBb3QiHFqtLZh+jDB6sVzwGQI=; b=rLNKGR+QTixS4+u8wh5YUYA5VselhdsktnwZhmUrEB9bV5Iv1DOn/j6j8FG7Jh8XdG ZH69mkfwbMafpnFrIe8KxsfHOWKacOvCILVscWqCOuvT7zALTkP3h/9K60sRVQ7DDoIp LTliuJsyEy/hevWVw01kJILgnoqqsbu9azoTaLLhFgArNhgSSXh6nZu8HVEfOcPxvCaI YXKA4f9x7jMyI5wTE4MakHduAZ04HnjlF32v/zp+WBKTmH1XeBM5YvGxoukDGAMKACwF q9+AU/L8sFxtezmp1elHZ17dhQH11c610LDLvxL0lARaMYQ/qROoVHKCyBX6QLRZtywf P0Ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cB5RPkAb; 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-174847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412c367f3si1952158a12.743.2024.05.09.13.01.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cB5RPkAb; 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-174847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174847-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E278A282CCA for ; Thu, 9 May 2024 20:01:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24AA584E18; Thu, 9 May 2024 20:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cB5RPkAb" Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 D32B881204 for ; Thu, 9 May 2024 20:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284849; cv=none; b=WFAiuCExvwHjxTK/Gbot2cwl66KLDeZ6UI41AKq4AZdcykXaLdnHlwKfU2DFxEQCNTISLCjLHMiMgos03I85EXxBDlu27J1qfzDPAlLqnX+b1wFC/qHflf6VlnP0rjG+kMVQIHVw2fTKlD4uBVD30f7sFA8Ue2ig+XU+U6Gzlmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284849; c=relaxed/simple; bh=b4fP4UgoO6k1eMUU5vItAasjLHJoVD6U7tHRbCDPYZE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=gaT1Ii8KR1oDYN6c66s90kCAWfuAKfcQ7xQ4sMpLacVzs6HiVBu8nvkvmKwvk/3bkASos4OGhq9diFTtjDr5bDRcawC4lGIcorhtZ2AfGn0/L714OG0LDgLNFhy06SuMRp1EpLDLkfAiv52jLuy5A/RB56QQaQLUOiB1WBpHxPI= 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=cB5RPkAb; arc=none smtp.client-ip=209.85.214.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-pl1-f201.google.com with SMTP id d9443c01a7336-1ed8876c40eso11925305ad.1 for ; Thu, 09 May 2024 13:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284846; x=1715889646; 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=HYbl9V+AVk19HnuKFt5pVD1HiMf/Dt0RSFiQIU6DF6Q=; b=cB5RPkAbJnObg8v0RnYHL9N3TI2TPZhEVtSxNZFhJR/bLNJEYBfDT15zhNB5XDpSA0 4kMMVrYsf5cFk5FYOs5HZJUN6GkWVnNnvsz51c8jPoQqa3KpPlWkQqo/FmUR86CFtlla hbzrNRBsi7tKaysTvW/u+9eTTfnYgY7u8m8HCdTcuTXenVqvUukQ5VpLoSCkwMQX0Zub b3GS+Qax2r6tZHtv4BUK0q9Al7Ayic63i35iB+RmLGh1Ai3QWXJFeIiuMK6XiAydi3pd 7qIW62hAv+8/6T3klJuCGAstRYgLdC5jxvsHKnOzDJ7+i3jg9RbUuzOp6RmFaFk0iRgx +OsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284846; x=1715889646; 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=HYbl9V+AVk19HnuKFt5pVD1HiMf/Dt0RSFiQIU6DF6Q=; b=f9pUctH9LSK2YQY2jxRNFRmYSosjp+lzm9uGKpha5t1sQEMAqeb+Lc0uAmN/xQ0bWW /Lk56S2wV7mCmihGY2DuV6eqMH8u1itgbXxpKdtnH8c79ZAx09T4Pjlg2/ZFzuMW2Bnx e1CaANWZpwOIMMFmPrVzro5rzLZ7LwoAF+SOZpEN/4zn/LxOqqXXuRpQImxUW74NbfOz SvPjKnPq7dM6w3Ze1bPqrbVqaLk85uEvJsETGrJTxI4fhnNku6RHXOlDMXiDJ0UPaqI/ t6WkNcACAXnyfKoCHvdB6eYZ8xrr5iR1OJPB6PAXnP15xyU50EIb+U26goBFs45FaJ3o ZnXA== X-Gm-Message-State: AOJu0YxrS7KhhXMp77woIf5xZjTLIZC0aMU5XT36I842xQzwrsNynG45 R/dglx/df6h7p4aVga2BiPzzm60umLkeKDZZghQJtxdLHaUvYW6ey9yLlxzAfva2xvohKP/X8/h Sdw== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:f68e:b0:1eb:6672:cbbc with SMTP id d9443c01a7336-1ef43e28196mr373325ad.7.1715284846073; Thu, 09 May 2024 13:00:46 -0700 (PDT) Date: Thu, 9 May 2024 19:57:54 +0000 In-Reply-To: <20240509200022.253089-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: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-3-edliaw@google.com> Subject: [PATCH v3 02/68] selftests/sgx: Include KHDR_INCLUDES in Makefile From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Jarkko Sakkinen , Dave Hansen , Andrew Morton , Muhammad Usama Anjum , Edward Liaw Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, kernel test robot , John Hubbard , linux-sgx@vger.kernel.org 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 Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Acked-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen 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.118.g7fe29c98d7-goog