Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp742559lqo; Wed, 8 May 2024 13:28:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcZajpxvezDGz+iI93euAh/MrPfv1Re8Ye4IZk6PVjxEMKmhFNE82V99X7z2bZ7hwXeQjShFyXpg+PNSKLgx9lKbbWftMtG7qlqQd4Eg== X-Google-Smtp-Source: AGHT+IGcXsb4CYg1DK2gCRbE+FANsAZeAghXnrflSp7e1OeYVSxq8qMuOkHvEK2nLJfYAh3KLKag X-Received: by 2002:a50:d796:0:b0:572:6ab0:6afc with SMTP id 4fb4d7f45d1cf-5731da81847mr2593413a12.33.1715200120848; Wed, 08 May 2024 13:28:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715200120; cv=pass; d=google.com; s=arc-20160816; b=QvSPOYeABG4tMhj3oQ3ivYWshlbbIYToIWguNAajfNDRhMPHXSA8BUgidYw8W30tcF SBuiJi9tyq6Yq6oGa660siYJqRI4oR1IsaJtbI/KWK31+d6oFWVGNMjCi7ZZeJrsTf93 gcoWxbE1zEqfs2CYHUCw6zs/GwdOaP7vUftE+9aE5V9QDTwGKsRauuLNFCFJMWVamNmH kLUL8APHK0Ag0mfSMPgfk60urrOtVmxgSxCVtPN2uRIsljK8kXgRM7ePPPYbfzXl/Jyh QrDDFia9PdZ/AVUgutq/K5fjDT64VDTY05kA0GfnM0KxU769ri3QnhYFJLEytiZYVjn/ 3WJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VxBCT1ZV/EGWLKjxVs7FXcKu7sqjJfkKsVJ1w+mU1+0=; fh=sxyWrbsPVd5TcOp5qVxripxYelveVRSnLJgXEfzq4J4=; b=PEa74qej7J9/EeJcdFx39IG68QNX2itDpH9qXqx4ZWOAo9V1B9PBwBi5J+vm9mxexS Jm8PPOQ6GfLcTRpTZ7Wu5R2kwShQ57KaCbukm2TjENv3/2lrYShalY7Lle16mJf28TfM 9/08bJWpy27p5hSg7nzqI+MTMwRm+WiWbEElWWFKiMlbn454RH6fdFfq72pn1YcGk0FO bQ5VMfGYTYPO/F5Ykj+BdEXh+W8m/mQcviO8DIU8ZzDlS3ytyQMyLZX3JbqaKYs6pX/t GcVAS8CmSAdLqDjFkU1/IwOLjhA+G4y4za1iLSPn0L3ppzpQ9fR4HFiZFrexHtnnHBiW Whog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NyX9IHCr; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173799-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 c25-20020a50f619000000b005700927d741si7607052edn.38.2024.05.08.13.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 13:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173799-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=NyX9IHCr; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173799-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 683E21F221BC for ; Wed, 8 May 2024 20:28:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4C0A1311A9; Wed, 8 May 2024 20:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NyX9IHCr" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 0E249130E20 for ; Wed, 8 May 2024 20:28:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715200092; cv=none; b=uHhqiRFf6mzZFRMTd2cy2geUnoSlbQkUmLkwRxy3PYdR/xr8awBAhyDcgdLV713jxargIfNnFSDcRHtm1MPyAPB4NBnHXPKAShZhF0YqLV95VJhwIazWcKvLRZdiFIccM0hD9/nUPz1kJ20oxJmJoJ72DquH8MiwPZS02APfh08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715200092; c=relaxed/simple; bh=o2NLQhPztuDZ4rTiTDFMEINRFzrqOs93EXYAp0RXtiY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BloAhkzIGIGhSC2JAhxbO7ifaxq8lQ+3l/MDIesiyy3eG4cbMkxzaZOvTLfgrxsuiJKiI3LpuKSGB451m3gl5pdoCcWmLLG8YygAcq9jN07UmnMLSnQ23L4UrnzajB6VoiHBxAJ6g9dRfbmy4KVbCoaVrqEP7A7csGtFsIl5Wn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=NyX9IHCr; arc=none smtp.client-ip=209.85.208.45 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=google.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-572aad902baso3839a12.0 for ; Wed, 08 May 2024 13:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715200088; x=1715804888; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VxBCT1ZV/EGWLKjxVs7FXcKu7sqjJfkKsVJ1w+mU1+0=; b=NyX9IHCrSC9Je83Z/MnO8GwYzmpBLZE12Oh7P0WFKvTalU2Ciei+SR4yfrdbmQXps+ uWt/vjgQ+p0u6FKAcDDdqRciXtxpn1eAn1RRbxJrfD7/D6dUWWiyHNmgyOHtkeETq02t YGSf7tHygxWbjyaDE4tFQH/tNyN+kiFydGC4Sf/vS3eO7m6sUlailV45R5eKKxcUYq0J aW/UI7mnxqPAUJ+IEgeMuC8o5GtFG8x1++zBxQVDeD5vc9pjheIIRF7IN7vbtVWA/fD2 KDdFmbJEMXi4XdMUBM8YFeX7KpKa9V5dExWXQepqMrbkr5Fy3psYGVyoCv4bI3hNGEoQ uD6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715200088; x=1715804888; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VxBCT1ZV/EGWLKjxVs7FXcKu7sqjJfkKsVJ1w+mU1+0=; b=a2LdCbrZNgsejkQ12j3ljkFrvJwmzfY6fwn94FZP5SQRZBxCGNBQljsjSGRpBipRtM tUkBM+mUzE2igpvvRVtegNr3Mv0dnXwM0XIpXMozW8YSzacqnJ37sdvpH9w9d6pzmp69 LcN0PYgugwizVY2wky61lgGdFYQ7hrl+jYjbDsPjgE9ubwbfmVHhtIZ9FKCq7etTHxuF YOCROHdt7Rd+UbeyS88QiSkAVlyGptuJtBJ/sm4MVtnxPeGyEx0HWNyJB69AY0OyuEbu 55JfYdw7744npZBmXV3z2xYk8f4PTTnW9Iz634CH6GV11arptBXcavRbFGxxaTK9gZLt V12w== X-Forwarded-Encrypted: i=1; AJvYcCWIzzt7ZRICmlWqt4r7ezjevw4xWZAH4EsQVro7qmJMhnTxlRVatfvDkidRlSpY3lq0L616ImjtmwU3FkCMWI0ECcaQVwlW7LvW8G48 X-Gm-Message-State: AOJu0YxrgyGDOqx+D8986Pin/fNChIKS4cEQ3HAAqq7wvySV04rBZQ5j KA7NsA40Bl9gd0vhdvAm10Xn1NA1hLCKZ3Fe0kaBfwCum0pVGAxr0GZZ8cXsnn2m14eZ5YxVYRt njbkj2/NpIG+p0eTJXDLJ+S4URXHGAp6O1RnL X-Received: by 2002:a05:6402:228b:b0:572:a33d:437f with SMTP id 4fb4d7f45d1cf-573341614e1mr44879a12.2.1715200087751; Wed, 08 May 2024 13:28:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507214254.2787305-1-edliaw@google.com> <20240507214254.2787305-5-edliaw@google.com> In-Reply-To: From: Edward Liaw Date: Wed, 8 May 2024 13:27:39 -0700 Message-ID: Subject: Re: [PATCH v2 4/5] selftests: Drop define _GNU_SOURCE To: Sean Christopherson Cc: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Catalin Marinas , Will Deacon , Nhat Pham , Johannes Weiner , Christian Brauner , Eric Biederman , Kees Cook , OGAWA Hirofumi , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , =?UTF-8?Q?Andr=C3=A9_Almeida?= , Jiri Kosina , Benjamin Tissoires , Jason Gunthorpe , Kevin Tian , Andy Lutomirski , Will Drewry , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Paolo Bonzini , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Paul Moore , James Morris , "Serge E. Hallyn" , Andrew Morton , Seth Forshee , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Steffen Klassert , Herbert Xu , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Matthieu Baerts , Mat Martineau , Geliang Tang , Willem de Bruijn , Fenghua Yu , Reinette Chatre , Mathieu Desnoyers , "Paul E. McKenney" , Boqun Feng , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Muhammad Usama Anjum , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-input@vger.kernel.org, iommu@lists.linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-actions@lists.infradead.org, mptcp@lists.linux.dev, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 6:54=E2=80=AFAM Sean Christopherson wrote: > > On Tue, May 07, 2024, Edward Liaw wrote: > > _GNU_SOURCE is provided by KHDR_INCLUDES, so it should be dropped to > > prevent _GNU_SOURCE redefined warnings. > > ... > > > diff --git a/tools/testing/selftests/x86/test_syscall_vdso.c b/tools/te= sting/selftests/x86/test_syscall_vdso.c > > index 8965c311bd65..5cd13279bba5 100644 > > --- a/tools/testing/selftests/x86/test_syscall_vdso.c > > +++ b/tools/testing/selftests/x86/test_syscall_vdso.c > > @@ -8,10 +8,6 @@ > > * Can be built statically: > > * gcc -Os -Wall -static -m32 test_syscall_vdso.c thunks_32.S > > */ > > -#undef _GNU_SOURCE > > -#define _GNU_SOURCE 1 > > -#undef __USE_GNU > > -#define __USE_GNU 1 > > AFAICT, manually defining __USE_GNU is frowned upon, so I'm guessing the = __USE_GNU > stuff is just the result of misguided copy+paste. But it would be nice t= o get > confirmation that this test isn't doing something clever. Or at the very= least, > explain the removal of __USE_GNU in the changelog. It looks like test_syscall_vdso, test_FCMOV, test_FCOMI, and test_FISTTP don't actually use any GNU extensions. I'll add that to the commit message. > > > #include > > #include > > #include