Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp57567lqp; Tue, 21 May 2024 18:24:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXm+AFzIdKHzLxVuPYF4QJAssfj34U37tf8W7PXZVf9KBfkKL6wMZxN0a2Fk97y9sSWjkiAQ23bSJu9jeurLz3QFx2Lq2KpiAP/NuLmkg== X-Google-Smtp-Source: AGHT+IGKhYw7/i/dKM4jZB08S9FXQrKrRZBHGRBii7fPhfWFaj+ZGEF2aU17g3JgGTEV7gedasMY X-Received: by 2002:a5d:66ca:0:b0:34c:f3cb:64d5 with SMTP id ffacd0b85a97d-354d8d86acfmr302376f8f.46.1716341080741; Tue, 21 May 2024 18:24:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716341080; cv=pass; d=google.com; s=arc-20160816; b=QwfvUG1s458UWQtQAMynjj9eoAtrKPo0gBoUnv2qBilRQYBvs7ZMiE915vkw19TDnB HCMW2SDhvkLkctjrcQwwZ2eby/GLpcDIa9fR9gpsENiBiqi2VwZVnuHmQvMaJ/xwmyyd pu6wm+M0a++/5/gcNDZUSdTHMqL3NT9ILV5iun+pACZmQzYpo6p2O/Cmq3oJ73sLjyuQ 3ZNmxPx8AEiQevHd/u4F9yvW8n2YDCc1UKSZPeb3AEXqd5y6zyk+KhiJiYsqRFJPpC7/ hoSxkhVJ7A89zPU0Q0Xrf5aFkDV+ffwu8KYnjVqTsWK7N4rh9vWAUhFlGllzXyF7XcB5 9UzQ== 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=2p/91SZXiolultWfykg7Se/3Y6CJnO46NmIdpmtDTd8=; fh=gKd9USgvx881Jc4+9wsis2H+/Opf9TgzgbICYtDf8x4=; b=BQH/hZ1x2mEzThyHbPPI7zKPOGXA3TkjgM03WZ7Y8v/QHD+PVi/apGtU1adRCP98cm B4lPA4FjjRZ+0MNBg6wnc1bMAPu4PDjyY6fk7b/zhZznrlzwAA9jueontW6J5ImBhAN/ oXEaqfgGM+VI9Knm3S3rC/pt1iIyQGtcseDIb4nX/fmO8c+IFHknDRX3b2irWQiYOZhL 0LWro5a9eDYBR7CRdadGHfYExXCGZJw2Mt2V4+nl4H1DoTRKdfTE4dg0KDlgz0MaKOmQ WRUL420Kp3ymBGzkcmKKwHvPlNFtkTohvSb44ie6XkWt9kGBkThY0EVdPAkzM/cdrz9/ 4ONQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=CKKlEEYW; 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-185633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185633-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 a640c23a62f3a-a5a29ef77fesi1411944366b.833.2024.05.21.18.24.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185633-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=CKKlEEYW; 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-185633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185633-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 2CA7A1F279AB for ; Wed, 22 May 2024 01:22:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEAA6158A08; Wed, 22 May 2024 01:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="CKKlEEYW" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 761A9158A04 for ; Wed, 22 May 2024 01:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339739; cv=none; b=LRvgOeGOeMDOl9aDUSN36Moss/eAWdjO73WofQNoj90Gxoyar0vg0mLk7qR7g+YNrw5yHI9IxMntYegvU+ZwCd48hfePjo+IjaUX+tgbcla2ArjSZ9BUDIbb+nlPNYElmMhbNQsDjzpvDipy3zqlbEc9b7cLAB2931MtWpHeKFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339739; c=relaxed/simple; bh=6sKEuw4EVR0IjH9p2JPj0dqFuh+QrksESybdQuYCbp4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=N+pfAX8NRn9cMig0RPdSTUQil22vRntlUIegN3/W/NJo95IEWI0Plw4tRmZFUtqE7Pl12YJuTuKpp0cElKvohDse7URi1j9Ca106WF1/AM/YrCCt2Oa10jmYbKl9Y7MrrOFaykRcXn7+tnVpWKs4tIxd9VEa53ro7XqTD3COU3A= 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=CKKlEEYW; arc=none smtp.client-ip=209.85.128.202 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-yw1-f202.google.com with SMTP id 00721157ae682-61be1fcf9abso195242487b3.1 for ; Tue, 21 May 2024 18:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339737; x=1716944537; 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=2p/91SZXiolultWfykg7Se/3Y6CJnO46NmIdpmtDTd8=; b=CKKlEEYWF+NfTDnKd8/N6EsXuD83wZZn0uhGBJvjGnaoPdsTet98ronmi/8o6oWGCc 8lHK/RThrOjmrkpYd/HX6cXv0q1M/hfAyY9+7MVIX9ppTgCtIxrTOx5yD0DmDQTmJ+4T IQNlxjAiwW7mFP9izBD5avmaaRwRr5a7yvmiZ/HRQj/qnzaJX1wAyGsCrMCymvWpREVO r4t+8BLfd0veriBNFHmmAZgQHTTH0VqB5BfUN4llgyt9qvOL9to37hDilnc4OL5swrkZ 31BaTtcMVMwdaaW2pruyIfCfPiio6SAc9xKVF3HRLs3Mq+0yNgN/8urIWxZnVWoZM6OQ fY3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339737; x=1716944537; 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=2p/91SZXiolultWfykg7Se/3Y6CJnO46NmIdpmtDTd8=; b=XLlLqB4lGBUxgezwF/5f/BZfIyY+VCQG1NS4+pB+MO1JKUDIaZD6dA2tdgtLSuv2sc SuNFrA+vU8ypPFzSAQXwCJJxzee/WKnxOnDxb9g4ofWTF3epvt8wpcf9MqK6O0eOnwsz +vDRksICI77iI8/Tr5AIEGDXbkC0knauAhA//PnjFTEPH27CiOsjYNC53l4wT8VR4Fir bRVZ4qzM1NoDL+Si4lkKP3B9DVRM/RG629QycehC8PdkWCJPAqWq+yqJEDTpRNpDU8hH HlUzXLKp13Gn90TQ30WMLry66JAhfg3WyPehO1S4NWahGMHYdrokMDP/4fwfYP2rWkGS cxvg== X-Gm-Message-State: AOJu0YyzCAasQ6HNUkXWVEiI5gcBZ7+08YIhPNGcU+DtV6i70q2Rux4T f7sbyhvqXyYySqgvsFcKvHd1GonA2zc6p6CbgQ+CRxAg6SUQ+MGgVuhV3cJ05JAfXhMQLlLpmqB thA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a0d:d80d:0:b0:627:dad9:bf54 with SMTP id 00721157ae682-627e48c3490mr1899317b3.10.1716339737591; Tue, 21 May 2024 18:02:17 -0700 (PDT) Date: Wed, 22 May 2024 00:57:43 +0000 In-Reply-To: <20240522005913.3540131-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: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-58-edliaw@google.com> Subject: [PATCH v5 57/68] selftests/sgx: Compile with -D_GNU_SOURCE 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 , Edward Liaw , Muhammad Usama Anjum 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 , linux-sgx@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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/selftests/sgx/Makefile index 867f88ce2570..272da790d9ae 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 -g $(INCLUDES) -fPIC -D_GNU_SOURCE 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.1.288.g0e0cd299f1-goog