Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp161721lqm; Tue, 30 Apr 2024 16:52:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgU7JB1h/0pdPmy877xR8XeyX8bdYXNiIpbLZ6ULDZC+tCdgYBXY+0Igqip4p8KEUvAM6sXUQJnOnQ8pRZvJZgmcl/PX2w2nT7IeNvDg== X-Google-Smtp-Source: AGHT+IGin6S99bSSBvzFW0LrPKw674mgl3uJQQ0Dq4sn7VYVy/JrZzsTIRMJ29PNqTvaznRVQ/ph X-Received: by 2002:a17:906:50b:b0:a58:ca9d:7b6b with SMTP id j11-20020a170906050b00b00a58ca9d7b6bmr731601eja.60.1714521138614; Tue, 30 Apr 2024 16:52:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521138; cv=pass; d=google.com; s=arc-20160816; b=VO4Tzy6dswO67npsqy8m1deF2xL9dLikiXv/3s5XQIsV4XaYJpLZmzvm6YcYGGb3wz V/hEsYwVoI30zpcTS2g839lcLn+/lUxmGJTlVoTxg1Os+YcuySUphgLlwqEqRWLgks0L Nzz2bMQpc6rOqWjGWE3fJrhqeblqS5JLLQdxCYb4DpoaPRAeVQYjLz12e3GYWcgZ6Kn/ m8Bxt5l6GN4zE0I6Yr0e2iqjoD9KtV8gj+6pHuCmbZaMjdSG7ADdzJrn+OrEe3HMNRd6 3QjFusOh4xSXg3FBQGDas4j4opg84J0OtJVSjXtwJoUveo9/9NL7uUgg+WH+41cKFNoq 4Ymw== 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=gjaSNnvftOLawQ81uXTzdayleIIMFIclLDs0BuljtK4=; fh=jWz/avII8xz0F0yG9MyxDnQiYU76feIM3+z+nFx0luo=; b=BR1K43kDpm9eD6giHuvySKqn6KKMRIQIbRa5y6NrYVXD5vksMtY9Z4IaRp+kL8UOYM IeBQ7rlufOapAD8Y7cewcMd0QM5bOaMqkOVVMUeArMrnBFyzlj5NU23fGMjCDE64F5LA dZy9rfKk2IbSpeuTeJedaMyEicUGg1JjT/HsnNPBe7IRH4xNGhkHM8961UapLNhMVcZF eHR+AszsRoQQKTP69/0w8ofj69oZ3Z1Ex2KmR2qiO6cgfUrWy6vWsmAFXnSp88JvI0gD mmwEOAfgQny7Em457bSyPLjeALd+a1V+EAvZNFvubhKoZ6DNLH75aHOer3tNHzSBFhwR 3KEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4Yx2vh98; 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-164810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164810-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ky14-20020a170907778e00b00a58dd645861si5051544ejc.1008.2024.04.30.16.52.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:52:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4Yx2vh98; 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-164810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164810-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 BAA051F23F41 for ; Tue, 30 Apr 2024 23:52:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 959FB1C6883; Tue, 30 Apr 2024 23:51:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4Yx2vh98" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 13DC71C65FF for ; Tue, 30 Apr 2024 23:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521080; cv=none; b=tvoyv7F2hpNtw8kUY/ykFqSqBi0ENzFU+D11kCTOz7DptHHPfFb3eb612WC7/AGCowdjZ2ZxQB7BVuxLu+nqL7vQj/QrOvy4cJ/w9Nkclt/wvvKRfeUC2jVRFyAXV3kZ8rE5Vc6w0R3a4UFJXJ3zzyU4ROUnO+LQ7J/uzhj6pZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521080; c=relaxed/simple; bh=hoKCCWVOkE0ESMxaMi+qTIS8AurEZYZfNn5Rvt++a10=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=WGF+zdUwbXtpaykFZIGICop5AZYh0nUj5SyoPefX8f1P2Tv48hq6kckmxCKHFeH9wqTlcKSrh+KSf2WifFZhgHk5ifqhT+HUOOSuxfe3Pq+ZqrbSQ+zxWpksoo7mad2IHu/0HHrXioYGFKP/nmP7wSmE1FMgBcXPgf4kIpsHkuQ= 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=4Yx2vh98; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-de59d580f61so9910413276.3 for ; Tue, 30 Apr 2024 16:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521078; x=1715125878; 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=gjaSNnvftOLawQ81uXTzdayleIIMFIclLDs0BuljtK4=; b=4Yx2vh985eAUe73b/Mn7onj2pzj/LBoS71ImaFxNWPt/0DIGzmxTlaskzv3d+Gb+Hp L2oyQ8B+7Xe0YZPUQst64aeW5xQCZJ9QXvCd83LpZL4+vT/DG5ys9nm6CxNHyB3q2+Mr j9r4MsmhFMUh7tLzhQZhsqgCwU0ukuUnqw5JUzUZxw4pwyQPvzdILp98ErP/aW3/auMy F/8HNoZtgvnD+ZwgUY7EoXvui5bBGspVCW3oSJhWFO/pKtL7j3F5MTOtOALW1shc33DW Yen84kX/hc1OH9b/W8IWVNIozK+opZC24W78s/cOLHhVbp2x5QLhClbx9YC3xI7RLrCc n65g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521078; x=1715125878; 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=gjaSNnvftOLawQ81uXTzdayleIIMFIclLDs0BuljtK4=; b=JCDoeIX1u4lMS9Jt0fetl4NqTzT7N1wvA1F2WmdR5mJP1qzpbJH52v6ycu/+HDqP3o 0JLUyps7thwUPJkzX9ymkgN80pbv2HeSgexbvOmWsW1jizN+B/AAP3aZDbMzatv4A3P8 aI4qAHxOVMBBnzNPs64/l/pcmn0m5DCz7s7gFyvN1fUv8HRGvSr/7Mg4qYua7+Qsy5tW njJmY29YOZhAuwE2yEhRb9o42HUZURHOicaW3H8ZedPAKUglkpAtR5P3dB4yTiPk6/pf oZV6BfIMOWzvSa62sDQjE2wGadBUuhi3xSYBTeDmhLLhCedUz9ZNGC5xTTlEPsKU1dXk nc9A== X-Gm-Message-State: AOJu0YwRfbeXJ+ZaLAs9fyTgWuYjVAg1Mclq08AOAG5EgfxRpMpuO5Zp 7M/IiAVrQ+2UGzwPkKA411gL+hl4r7tukQHc4VnZ7WP+lBDORD0gI8qO68od6Pah/47W+foDJt1 emg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:150a:b0:dc2:398d:a671 with SMTP id q10-20020a056902150a00b00dc2398da671mr352958ybu.10.1714521078081; Tue, 30 Apr 2024 16:51:18 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:10 +0000 In-Reply-To: <20240430235057.1351993-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: <20240430235057.1351993-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Message-ID: <20240430235057.1351993-2-edliaw@google.com> Subject: [PATCH v1 01/10] selftests/sgx: Compile with -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, 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 , Jarkko Sakkinen , Dave Hansen , Edward Liaw , Andrew Morton , Muhammad Usama Anjum Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, kernel test robot Content-Type: text/plain; charset="UTF-8" 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/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..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