Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp162218lqm; Tue, 30 Apr 2024 16:53:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzUMDZ8GfyoptP3jupSae19RRBBO0s0sxkcpTGPK7uyjtFQbWLqQSq0HNBwjZ1h5ue7ArlgNCV5ed2orxYE1xJWoWfGN+eIOGqAtkY2g== X-Google-Smtp-Source: AGHT+IHg6hg1fu4g6VhmhxnmioVqGswEgAZhCDtxCusOWHTqNbnxJNtVt0El8za0WYNHGNSq10Hs X-Received: by 2002:a54:4187:0:b0:3c6:100a:86b2 with SMTP id 7-20020a544187000000b003c6100a86b2mr1285681oiy.50.1714521232064; Tue, 30 Apr 2024 16:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521232; cv=pass; d=google.com; s=arc-20160816; b=wyEI6zx4ZHCEw8ardGTBFsTk+V8RZui+/mLG54aaMY86GNqpoU2eGF854jV5WTaVjb boUo/s6m217lcyj/JSt+ECX1MsaQAxeDuFhAcSpCvJfTdT9EUE+L3nsvfTbjHe3V3Cm0 FE4fkQZ9HHaAdgUvEC5x478kYDammBjNTAPtyeVDhfJKBCZNN2rAKfUKUB90me1194ER DfU9vTtTP1NYkdPmTKf4r93EbtxAa8BzUlbGo00e4oZbcU4NE/sZvZySdn484EpDIz/y CLv5wMV+tTEoMa3ygxJYiJ/O6wu7AyHSDitl64z/RHl/cCzyVJGDSBg4AROIvJ207pqL pf6w== 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=kM67DbNAqGoOnnaxPY0sLf1UR/LdcGYFGTuUrdY7Kyo=; fh=p47eO9dW7b/Jjg1BBE0IU+05drocatON/fenqmZBID0=; b=ZYri035LE0+rn63w/rm6kaXhhgWp49BSlaULBuyQ3Z8sN/Z4xOlXKdFwkb/Wc06xuq RL/IjaeH/38f2jkhjrISTR2dXnwqxV8CKXOU4OZXBzgCkqBgHc1XW/UML46MyY16ifCu QqSgZxxXMDtieVWMxOLoZ6BY/iUZ+HLLfpsoYg/Xs9l2vPu59VjX8vpFEkrav1k1TbH9 emirRtNsAitMdLnq5xKPpLupQ3m+bSwMuyMVMJ+dAgGFMB7z8cIoeWbcvjt4upbS01ay NxlhsomSqp890y0sAnt1oP5eXKz6AnjIwzAYj/McSYN5dq6EjILRcwdbBGSXou6bJ+9p su5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B3LDvGkQ; 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-164814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164814-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 lr48-20020a056a0073b000b006ea8b233549si22322072pfb.328.2024.04.30.16.53.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164814-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=B3LDvGkQ; 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-164814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164814-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 AAEE1281254 for ; Tue, 30 Apr 2024 23:53:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91BCD1CB30D; Tue, 30 Apr 2024 23:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B3LDvGkQ" Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.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 6E8571CB308 for ; Tue, 30 Apr 2024 23:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521095; cv=none; b=VYtkeEhDeHz5iLnaOMFz6VkMq2uFUYZE3QopIWIkdMXYRR7U4B92cVp6AZMGF/CTDikBJeA7HbVhlbxa0zctmlxVygE+Jd8qlbohu84RscoBtwpNtm10hjfCnMUhX1GRp6xt3zyNJhNSezG0WxCKYG08cE72zHbwBJE+hYkSJJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521095; c=relaxed/simple; bh=y7pEc5taF0Bx7YOXfxt+O85Tt8RH3vKYyQLjJaUCrbI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Y+t4XlJ8oLyAW7pfNRwDpm5RnDk1a2+WfAaR2NN63TMXcL8PoKmP3to3yO4AeQhrcFk5sZZ0MqbPxlzpBRjWybl0ASVnLT6wpal3bEYwwDPdRhZsxbD2FsE/2iFBF5DTJuSCj1xCLTLkpBJRl5/W3vF+rtcFmDB9QpjpmhGoGxM= 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=B3LDvGkQ; arc=none smtp.client-ip=209.85.215.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-pg1-f201.google.com with SMTP id 41be03b00d2f7-5d396a57ea5so5310160a12.2 for ; Tue, 30 Apr 2024 16:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714521094; x=1715125894; 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=kM67DbNAqGoOnnaxPY0sLf1UR/LdcGYFGTuUrdY7Kyo=; b=B3LDvGkQNkaciOwuzfjTU/yQ+IrAzAB3KqSFdX3xAbaSkBQEJPPCSDC3cIiWW+sYs7 TrLOWDeH5oCjdNW6YVS44lzG91MfmYVEW8ss+IT6WFYb9ApyGkGsQRIH9X4dkGIs6Ovq BSJgeIJm+QxSmtaRCVwBh7TOws/4IP3iq//SM/wNRpmp7aGPHJxSY0YN2/I8sO6AVb0e XWJLJTghTVPOMWkpj2VIEnox6MpyGTCBVJk+U0lcab4+UaasBn8gJaQaDj/roDNKwZNS qyNVqwgfiarIA6GsnfSlzRsZU2Z/wX9E2c/T71EoF9wQLl+jz9WV0W9T3QnmyQNeFYt0 Qs9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521094; x=1715125894; 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=kM67DbNAqGoOnnaxPY0sLf1UR/LdcGYFGTuUrdY7Kyo=; b=EpcehFvOi7TGVGykhnrZc4yE1bAEPQsUaHf8CRghEKOsEPiJKzLQVu88pN/iLiaCRw gb8Prg0wTJz0EKS2/mmRQ4SnsvjvIoO9Z+ZlFliDn5YWMCHuplrdWs/KpE96sf4p0Aoc ZEaVhVzVopNPD3EP03kYTRx+CapE5ggYqNqaMindQX6H16dlv3UJoCupxaaetUxxs5Vh V5Qq78YilyBQysOOsh5vJkwpK+s5YlzQ2fwOjkz48woNdkaN4Lk/dubHzzRMbn70Gipz 6Gu3WSjBnE0VzovQp2jXAWZ14+VviMZ7C4twquJs7MTA8FtNnMHVwukD+ZP4WItluIkf 0VEw== X-Gm-Message-State: AOJu0Yzj1Hqep0srr4bSruVxzQ1UuPGinVgt0sUMGgMsjrQR1pXmAPvm zpS4lPwTRBygWvj88OFdFFryMEzVVLpqdrKgij1mHDXSJ5Jh3Jlt67Zn8cIR4efOtG9bN/8p/Cp mig== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:4762:0:b0:5ff:bf73:651f with SMTP id w34-20020a634762000000b005ffbf73651fmr2548pgk.11.1714521093463; Tue, 30 Apr 2024 16:51:33 -0700 (PDT) Date: Tue, 30 Apr 2024 23:50:13 +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-5-edliaw@google.com> Subject: [PATCH v1 04/10] selftests/kvm: Define _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/kvm/x86_64/fix_hypercall_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c b/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c index f3c2239228b1..7422e8ff6bd3 100644 --- a/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c +++ b/tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c @@ -4,6 +4,8 @@ * * Tests for KVM paravirtual feature disablement */ +#define _GNU_SOURCE + #include #include #include -- 2.45.0.rc0.197.gbae5840b3b-goog