Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp163072lqm; Tue, 30 Apr 2024 16:56:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxECxGTrqVClNILPiQBGrPmGdkBhBID4QeWo/RwIVIaKTIOgIfIjrgEpMJKOfP/Px68ATdD4trqmJCxu783DL3CMwOI2PnuXZI43ZNuA== X-Google-Smtp-Source: AGHT+IGEGxrBYURNLbH3IopYv8oHiiWBr7Um14T45Ic9wlp6fnVK7+mCicfodP+jJJcDJLJwjbW/ X-Received: by 2002:a05:622a:4b05:b0:43a:f64e:a71f with SMTP id et5-20020a05622a4b0500b0043af64ea71fmr942311qtb.24.1714521401365; Tue, 30 Apr 2024 16:56:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521401; cv=pass; d=google.com; s=arc-20160816; b=pIh/QlxSZHs7UE51HNnUp1YrdJj7d6RgeMLNQ+Vog5/oALXSM1xFFapPt3VC4QYXuu AnkEQGYdWYuRjTcVHWOhwaMX6UhsIw9GxUbTodK5nbiD0+wGNCPkOEOVUHd85KH0wiCM +APfdHh8csAyDIB8Tfe6iqtW/2uQDK3OuEWN88kDwOfUB5NHFI0dAKb74JZLmHOWsTSs hNcVkIQDXQQnjDo9QyA5F3jaj+ZUtwlzI+dVa9jwFxd8dQAMiJS6aiJjqmd6REk8q+QB 2s9txqPC0BMfLeKpH9Adi5ylKxgUO/6mK5WVvxiiOKFEZ7Ol3FDHNa2a4hnL4QciwqSt tbUA== 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=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=O0YIyBmXsnQHkDFldFdDK2uJw0qbiL5ZeVGCyyeiBhbYYH271bcO1+8+n8BzDtuDy3 /FCQPQ2Yc24r61uGKKY5nHaf0eOe8sDr+unbfWWdHoShILoSYcqkwJ2GqtQ45K9caV99 ncwFAZRdyCREAXbGG6UR3yOr5WN75z4HeVUNot6IOQsBuFs9AB0sqL5b9lQ2N9+6rikg yYZDvNkAeDpD18qpKgJVcOHIeBKzOYaFVG3n3bugQSIipHWnsVHLgKKdcWg/F6CRKSBZ OY+ReGmVzGIQrw8mZzc7udES2RBDJPbYZ0KFjIcOSbAbdKvF/zSxrBVHO5p4OI8sRU0T mUbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=keeEguSY; 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-164820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c15-20020ac87dcf000000b0043ac9dec9e6si7241644qte.337.2024.04.30.16.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=keeEguSY; 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-164820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164820-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1A1451C223FB for ; Tue, 30 Apr 2024 23:56:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B72FC21C164; Tue, 30 Apr 2024 23:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="keeEguSY" 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 4747A1C660C for ; Tue, 30 Apr 2024 23:52:00 +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=1714521123; cv=none; b=BbsGW+oxpGUMDMevc28Iqo9YNaWy99SBNoZjpSscJjjBE7bhC6HMxTPi/37ynUlZeM/9fCXY8d0xxPuQFGU3AgE1E2HTtkyRgQO2vj8QCfI0EtELQ9zjPzxHs9m5M55VvNRYjLyEK85Nluew4QsQzpcjheF9xpFgNZ9Yd5MPlKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521123; c=relaxed/simple; bh=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=d5mpbI11UYTR3pC4nwMIJgwwUvA4nURKLbMBcwkwAxVjvYmsmuLITxp15SATJ9D0TLWtExNJJb7KxiSxhGQfV7mS4lJ7SXQ7I7WkpAmwhC2C3IVKNoDGX7bDwfC+mpBd41CbLr81X+BZ4YDVRsiq98/P6XYynxquIVrzEDLVKqk= 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=keeEguSY; 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-de74a2635e2so1741165276.3 for ; Tue, 30 Apr 2024 16:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521119; x=1715125919; 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=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; b=keeEguSYKiYQkwXHyB2MrirM7L4y/Sp1KZdZTe1Eb1jtwQtnCsDWIpXRReCNmzLntV LaN1vRGXt8Ee/+WveDn79hkXqdatNUKk7+0m0ApxnwA8jk6DQGuWU5HiRiaL6ymJyGyO Yt0PhkFkEGuLIC0ibsKHgbJN1rI4ul6Y52GkoerHsIkVg62N96JuJrvtFG+j6kgZdV0O 81+cIaFsJxjWfMEVeJs2y9JYP7Iwp0gOmXtZCf1DO8OjYA9PRLcQ1pnT3fkcWLCI4g2a Us1YG8JSmxTJ2OQb9puJS6qNWWaBllS5bnXGdD7qVSx55UTthCEPpOmyKbbveYBZJqEZ f5hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521119; x=1715125919; 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=2QdI2TgmxQKTHiSdbJTZcZLPJCgb3K62uskVNaaDbcM=; b=VHYeT66g9ZcbJYj7pnfH8d4wf8WcwFVkZ/J8LYEB/r4h2Lgc8UG7K859JSjGgRNcL3 mvRX4pV4tyCOMnDDJburnz9r83lldvK+sjiHIjCcuySI1FTQU+Z6szd/Zvwuz9hDJkY6 uL+1VtdGcyAxH0wIvyg3t79DS+Ban7YhVN51IB1KpREcf0Ff0U55umX1dNabISfEeqiL sPqE2uu+xstOk0ERj1KzOJuqMv2lHq0G3qzKt9dk1YdHhE1Q1a9aWOcFDeIzNgo8MPXm /7xcvNTOwZ7COCZqBf4pFBz+62VyVQFMpijXg2mQpCguLxOk8piipItlOgXBQU+6H5Ip JMFA== X-Gm-Message-State: AOJu0YwDBplIXWXqBLng6ZabVNfO7k8yFc0rcgjiWI0tnjDdu8JVjMVu my7MyJ5GklqKP590KaWQR6R8suPH/ycdxpaCXrs3yKNwjeWvP5j3aTHH8INHnQV2s2bvNBH07YV Tyw== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b83:b0:de5:1e69:642c with SMTP id fj3-20020a0569022b8300b00de51e69642cmr175231ybb.5.1714521119181; Tue, 30 Apr 2024 16:51:59 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:18 +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-10-edliaw@google.com> Subject: [PATCH v1 09/10] selftests/tdx: 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 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") Signed-off-by: Edward Liaw --- tools/testing/selftests/tdx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/tdx/Makefile b/tools/testing/selftests/tdx/Makefile index 306e9c4d5ef7..5a084a792a21 100644 --- a/tools/testing/selftests/tdx/Makefile +++ b/tools/testing/selftests/tdx/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) -static +CFLAGS += -O3 -Wl,-no-as-needed -Wall -D_GNU_SOURCE $(KHDR_INCLUDES) -static TEST_GEN_PROGS := tdx_guest_test -- 2.45.0.rc0.197.gbae5840b3b-goog