Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp947440lqo; Wed, 8 May 2024 23:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH43+Jj6mTnJTZ6oePFxKoIzaXeU1Q56OAhJYzAWd7lCd4bRURiAcVORHqjPwBfOiqreaYUpR17Q4Wn869DWjDQ5xIvy+HGqIoRgUa+A== X-Google-Smtp-Source: AGHT+IG/K0dbvHlivZB0bo1lgCxiIbYkZM3kNhjbG+CAjRv1+SMD7nyeDjS4JtwNmOsifBY66XQ7 X-Received: by 2002:a05:620a:15a4:b0:792:957f:b17f with SMTP id af79cd13be357-792b2888984mr461569685a.72.1715235280751; Wed, 08 May 2024 23:14:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715235279; cv=pass; d=google.com; s=arc-20160816; b=0PuYTXXUTsGvnHkICRfS7FKNJ5U47PgJuZmM9DhMj6gcZCIG4s2Mus2ltUo7GehiLE naheo8UuZBZQKZOrUg1mOCatvXWsr6GSMA2ODiOe0RzGskQZEu/SuVGA+2UoEVlpK8vI QQkpAixroXnhbYC1jpB6MsJ2exYKcp07901j0kUnC7Ya/7XlLlNBbcKI642Vv908QPO3 6xsiNHZuzy8UQhj9Z6Q5xIpGIcJLVO+q80yTGK718xvUzrhTTP6KZKMuY/tNgf6rWWA7 Lm7ozgU54K4i0JPZEZEkM1BcrnWRSrRdMT7cqU0ZaA9E8Xe1YVpPsFr3erk4GtUeNHpX ji4g== 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=72bWBwjQodIuSi8MsUtQvKNvKwdUWjXGREUei480Xwo=; fh=Zz+MLCk/Kv/cqOKNNjg+2BXu6WBOmnJbfBgvavZ9uqQ=; b=riU3eGfxtIjNUU8Q0N5/RF7V3ewI/a6ouRcVf5axVHh5xtKXazoNt7ncNESO//CubU xydykdfKD0FT7drEkjSNNFJ7N4e5U+iVQEMok4EdSdmhh2IB9UrYel7SF7pwmNH0Z1i8 tsbO/AXt66LeLJ4pNmeolffNg6s9Bxk8qFFX13VxWbMfu33LSN+44DFXwJyvssrqe+C+ LrFqJ5DxyFgUYHo33/wsfBioHC6LG2D+OoC3IZnArxRdC5rzCGJNeLdBoJxo5h2++D1l rpWQL3VastU9Ahto4JQChGAHHquLDjSzT7lziVRkM6u7RfEXYdeKTVUj07OYGRwjED+E yamA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="WEm/VoPd"; 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-174182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174182-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. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf309e98si68558985a.227.2024.05.08.23.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="WEm/VoPd"; 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-174182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174182-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 3B9561C20AE9 for ; Thu, 9 May 2024 06:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5C581494D8; Thu, 9 May 2024 06:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WEm/VoPd" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 CDE061494BF for ; Thu, 9 May 2024 06:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235262; cv=none; b=JP8rTVVCIoqe02XvKripmxuACeWDAc+VpJ1wguZHnpzC3Smpy9ttW0N54K2h//dzHu4W7WhepHO2llNOt8IpI2rwC9j1NpOUd58SQC+vJSOop/XslysTTv334jI63eHsh/T1eSX/uDQIe2ozV5PBjdRJdpYvLd0PnAlFzXgfwHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235262; c=relaxed/simple; bh=EL59YAvQ+NejbE+MgsQ0pGcYE6qA6HsEuHDusaEk0N4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PrjWmM55ddye6/pa6xuI23c0IxDulKYbv+IcpBXJNIJqsOd05p8H19fyUbnj34XlfFXinf4ZKTyIe+6RLL/zJGzXlZEvCug4i+nZ6/oxJ2SDYMj1P3cTRHFIpoi37MDRXijSgavAf7aDVxeUvWK8qdtQh50U5jKhhfk/egcMwkI= 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=WEm/VoPd; arc=none smtp.client-ip=209.85.208.42 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-f42.google.com with SMTP id 4fb4d7f45d1cf-572f6c56cdaso10523a12.0 for ; Wed, 08 May 2024 23:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715235259; x=1715840059; 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=72bWBwjQodIuSi8MsUtQvKNvKwdUWjXGREUei480Xwo=; b=WEm/VoPdoWkj0T759QWiuYvMX4pHXbQGtGV6B8BdS6/Cq0VFDkresAaaMIYb++Xv07 NGG+jf4a1dEnvAy0YaC/s7lcBHZYg4XfdFyn0UE/NSSxuV4NI+ONOzRkSN7wuCtF7G6m GTOO87BGuQVGfzWL5T65/lgJj6fjNzyMISuP7RyGnMi7ZT8v5eJ20/bJPOff/6tMEzYf htFF4m10x/m7ACoxg+H+qSKb1axBk/xf7pNTnIFlBhJxau06TJtioZB85NLY3yGUoNGf qsBS4tNQxQMxJEtkUampvrB3zly877wqooUCzxdQkmiqESGQ2AKpeP3mEO/CMSG07Le0 wmxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715235259; x=1715840059; 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=72bWBwjQodIuSi8MsUtQvKNvKwdUWjXGREUei480Xwo=; b=bRuvHmikdOgwbx1zM0CPWVeA+fJn9bfTL9uVmu2EfoEYHmFw4i/7zfDlPYdcwBiScJ dERVznwjmAdE+UzdyA2aSL3ox34G8dywT0OBYpCr/TbnQWITXuPVRWhBkNL9fO6vFl9S Fx6V4Q6JhQv4i7iu58gWvKM1RqHXQjqT/C+spgiLCBuOYB9WhMMVpt3C/0EUPwv3Prob mGke3t3d3mKqzv3fIPLRQgxubdCPdinJ4DM6jGStvOZWLlaovDiqIh+uSXUx7Ri2H1Wi pekMv2wnpin3fS3AKI1oNZYaGgMsGazP3FRbEwg8zPN90HmtRgTXGpoJADZ1La/yHhHC 7/dg== X-Forwarded-Encrypted: i=1; AJvYcCV0V90wI4aApUY86kjb5tbjL1pIxoGh70U2EgDtLeLgiHoMTOEhw1IXJ+z+xVO+xa5zXcP7BqBWJMoUIDfGdo8kCx/gzrT5GQ5S/5n0 X-Gm-Message-State: AOJu0YxKNaGewTlgg+jdxuyakRNYRAFrz2HPiGXrSug3sdMKBLIrnblp xAhbWXLxRFjJ9PRMIc0auPeGoXigZLrkc9EpYvdz3P6q7BNHD+BJYOgKH6zwQ/mxw2lApLuSDAq asTyFdJR0hrzWaF+8cagKbkTT0CgFIw4T/SYx X-Received: by 2002:a05:6402:5206:b0:572:a23b:1d81 with SMTP id 4fb4d7f45d1cf-5733b9d3b3emr79412a12.5.1715235258767; Wed, 08 May 2024 23:14:18 -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> In-Reply-To: From: Edward Liaw Date: Wed, 8 May 2024 23:13:51 -0700 Message-ID: Subject: Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using To: Shuah Khan 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 , Sean Christopherson , 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 4:10=E2=80=AFPM Shuah Khan wrote: > > On 5/7/24 15:38, 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-ed= liaw@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 > > I appled patches 1/5 and 2.5 - The rest need to be split up. > > > selftests: Include KHDR_INCLUDES in Makefile > > selftests: Drop define _GNU_SOURCE > > selftests: Drop duplicate -D_GNU_SOURCE > > > > Please split these patches pwe test directory. Otherwise it will > cause merge conflicts which can be hard to resolve. Hi Shuah, Sean asked that I rebase the patches on linux-next, and I will need to remove additional _GNU_SOURCE defines. Should I send an unsplit v3 to be reviewed, then split it afterwards? I'm concerned that it will be difficult to review with ~70 patches once split.