Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp512785lqo; Wed, 8 May 2024 06:54:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4q393WkDfAQ7qp4nqcL1G2laYqmDDWauwYNS2ynbRuCpxOvSDIDSEljHq6HXC7JVbp4vtBCaikmw94jyBzQu5qoHavH/YScuzpBaYkA== X-Google-Smtp-Source: AGHT+IFxBnVcX5FdgH1yRkAySEmpDdxHb6z5Ny+xLRwir+PaRmFaFKhhxMaOeRGrmFc15G5TRty3 X-Received: by 2002:a05:6a21:619:b0:1a9:509c:eba6 with SMTP id adf61e73a8af0-1afc89a08a8mr3799112637.25.1715176448773; Wed, 08 May 2024 06:54:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715176448; cv=pass; d=google.com; s=arc-20160816; b=0H6SqOStKVejpJ7S2ZsUd+P+D8bpM5e7Su8Vulww4L7IDPvgOJ4JhkA0Xnw4KB5LaU YAEJiER72md5KBjdWMWtW3osv7vQDSKF0dK2FURUIfI8gAByN0EWR3ybigKnOLuT6ZzQ kCp+8XT72LudDC/nkQbboTlZSiN7nhO2oFmyAVGrylBG2Jva5b7/mSLKW3QLulWtAAjM OPVAt4MOAAelhS52p8qFNABLl0Uv4vZf2xcCHLWN2HA0k0WpIE/IkqFVHfdI4qke5CHL Py+Sf+ydbEAvNwL4CpCI5pekAvvZrHv7Di+Wh7mQZPi7UlqpwTLFlTSkMKGKGU5l7SUq 1iOA== 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=9Cy96MEbs4JLv+XlnJDrNT2CJ2qEQRDaH5Qu53Pf8ZU=; fh=yw+icXGwFAmjt3ESJMIg017lx+ggH53KzWZQGJmsQLk=; b=1J9pS5bb9aKuQ+vyWke/Gjf7SzGYgOlHJa3u6jGLRFqzHP4C95upNLh0jvTNex9kHa O+ujAlI0xOprLBeUSHnmtVyq6RHYMI1KlWzm14I6DGZi9QGCIs9WofB+qWnl3YSL1qKU AUd91nKMbehxv4s9ad8op52LdbF88oHHDWTubYaCU+lqwwcO6TRmRSkKwJUSYQ4q1VCd xY/iMDO5A8Vstrjh80aWlUeAK+W93GJXD04TR5u28NfM+0c6sOXNhsWUHz9Hev7KeSSL ODaKOQDLKNM1jqGFIEhw+iu4sA6h4xGT5qnjwGD8GIhheh+vGrbO3Tm5Dm4v0Zi1YVxK IvAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bPR2FNMY; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173355-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173355-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. [139.178.88.99]) by mx.google.com with ESMTPS id lo17-20020a056a003d1100b006f482fa5be6si5558195pfb.34.2024.05.08.06.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 06:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173355-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bPR2FNMY; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173355-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173355-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 D3095289954 for ; Wed, 8 May 2024 13:48:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E59385656; Wed, 8 May 2024 13:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bPR2FNMY" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 4626D84E0B for ; Wed, 8 May 2024 13:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715176027; cv=none; b=D2F+oyO8MIanh5tFdbMd7Udec5kXbWAqIh+fa+1pVbFavzmPUoSCIm4ChOWPq/lh3Uq48VuZUWLb99MG4ptkoB7sgcwsq6sTvp6EKdAxzkZaVAm7bLsv1a/W05VX0/FAIM4BTTYm+vaxC0CZaeQJje97DgRfrU8BKnosddfBMwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715176027; c=relaxed/simple; bh=u6EyzHXd27fFGrN9Et656hCo/08PPyT+hT+CjlkxkTU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ilLRk3tfjWXSZ785bdz7ERh0jzlT32LyB3dEWbS5a5NG/D7UmJMyufz4ZlCm9CZDsgbdYTaXE+Xc1J6xeRbkfFTo6oEQ6F2IJ7YyYCF76NpK6On75+k4W7ahv+iiew2RsLKiMFXdKt4nfAs3zAkQfNbDzKlpYQs/g50tY8gdbVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bPR2FNMY; arc=none smtp.client-ip=209.85.216.74 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--seanjc.bounces.google.com Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2b2a8bd5ee0so3637206a91.2 for ; Wed, 08 May 2024 06:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715176025; x=1715780825; 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=9Cy96MEbs4JLv+XlnJDrNT2CJ2qEQRDaH5Qu53Pf8ZU=; b=bPR2FNMYRrL08LQZsHzX4L6KUGDoby1D7kq9CdVilnTl6CW9lrBNQYoFJsegU0aGHp 4Rvak8c4UmtoXc6S3fFjOZBo01YZflQzqFYbXxLIMfFX6eOvhYD8CtmBrq+Mb4rYJAd4 2TsYLBRRZ5lpklLD11TRJUBP059D2HhrmxyI4sMyN7bd6vthUJHtxs4RdEeGguR3wo9D 30qJITdawJLGFg0swiui7xrCU72XGr5q34hiCJUVBCjHrubNk4EFfWZpBaPVUzsm1Ifx +T4FgDSpNbi6t6XMJh7DSzyQHM216u9cGZYXYgPB8SaOhyO6WycTJJETY3cK0TX2A9N0 gIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715176025; x=1715780825; 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=9Cy96MEbs4JLv+XlnJDrNT2CJ2qEQRDaH5Qu53Pf8ZU=; b=XPBEovYnMRmH3hJtZ/DPWvFo/yaJJYx0Hh6+nCFCKUYg/xr/OrXnOSEgVJrx4Dsh8i s+2Ot3MCEEcg4R8pWZKAfXlbl6AYANKh0E0BUkPvThkZ01OCCZZip/i8xAFCZUzsC2H1 K0L4g5IeUj2QPhYq2Dpd2CNUPBrk9uakbDiYyRW+Sh88TUQJ35lSgy6jj3z/LTnYmQv4 NqtOEQKxBU5iWPLJH9HkOg5ztHBkHdhhbQhUZTo5Vik9JSV77rICauOk4zau+UJRdGzR wGcCEcO3O5gIlTxvd1mm4FKF/eOdGYt4LzlHeMjaOgaHjedGwNAcraOVpFduP+LDxgHk 7yQA== X-Forwarded-Encrypted: i=1; AJvYcCV626aJu95nyuNjD3NWUg3KkIg5sYMXct56Bc/NV3Jgza4cQq0LfL9Jshq5E2bPIxdx8gFpDUiZT07XB47AnynnEZSeYBhltxLYhf7h X-Gm-Message-State: AOJu0Yz/6qEUwYqZwtm3cTO3LA8LdIOqvR+QFKF8u1mOhsW/7EjaU86r YyoZg7vhCKMCUpU7DOGDINJ3cYa/ycYskriSPVgGV1zAwBt8LiqL0CgIL/L+ebPqZkQffXWfEfu upg== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90b:128d:b0:2b4:32ae:483e with SMTP id 98e67ed59e1d1-2b61638c780mr8658a91.2.1715176024465; Wed, 08 May 2024 06:47:04 -0700 (PDT) Date: Wed, 8 May 2024 06:47:03 -0700 In-Reply-To: <20240507214254.2787305-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: <20240507214254.2787305-1-edliaw@google.com> Message-ID: Subject: Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using From: Sean Christopherson To: Edward Liaw 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?B?QW5kcsOp?= 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?Q?Micka=C3=ABl_Sala=C3=BCn?=" , 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 , "Andreas =?utf-8?Q?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="us-ascii" On Tue, May 07, 2024, Edward Liaw wrote: > 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. > > v1: https://lore.kernel.org/linux-kselftest/20240430235057.1351993-1-edliaw@google.com/ > v2: add -D_GNU_SOURCE to KHDR_INCLUDES so that it is in a single > location. Remove #define _GNU_SOURCE from source code to resolve > redefinition warnings. > > Edward Liaw (5): > selftests: Compile kselftest headers with -D_GNU_SOURCE > selftests/sgx: Include KHDR_INCLUDES in Makefile > selftests: Include KHDR_INCLUDES in Makefile > selftests: Drop define _GNU_SOURCE > selftests: Drop duplicate -D_GNU_SOURCE Can you rebase this on top of linux-next? I have a conflicting fix[*] for the KVM selftests queued for 6.10, and I would prefer not to drop that commit at this stage as it would require a rebase of a pile of other commits. And I doubt KVM is the only subsystem that has a targeted fix for the _GNU_SOURCE mess. If we want/need to get a fix into 6.9, then IMO we should just revert 809216233555 ("selftests/harness: remove use of LINE_MAX"), as that came in quite late in the 6.9 cycle, and I don't think it's feasible to be 100% confident that globally defining _GNU_SOURCE works for all selftests, i.e. we really should have a full cycle for folks to test. [*] https://github.com/kvm-x86/linux/commit/730cfa45b5f4