Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp88424rbe; Thu, 9 May 2024 10:48:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTpB1X2mc6LOe8fdDT8GyoRDmhl+61zEkm1zSC5P9V/ZwhhWDsLirKzhF7vt/P58TikqDZ04PjfvRzDqzpL7fbuAqFEdLEEgV53yPctg== X-Google-Smtp-Source: AGHT+IGmLyNmLU2+/N5z7Q7WG6DlqbUgQLvVjVMDnjDQh7uu6Ge5iQWGMAwBJMvJy8b8QI5nyqxx X-Received: by 2002:a05:6a00:3ccd:b0:6ed:4288:68bc with SMTP id d2e1a72fcca58-6f4e02d9c18mr126385b3a.19.1715276889193; Thu, 09 May 2024 10:48:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715276889; cv=pass; d=google.com; s=arc-20160816; b=Cluv0a6gMOxZiDrq9t33hAnp8JV1o9sHLPhi/7JP3h7aSEAdBbv0vcWRJTL0jU87cQ A0VmIZUgWzLGx3fVIjnSFiynICM/hxLqYCRR9jJmajO2t8NOFyHGXIWJq4EXJacu9T8j 1m1AYPDFw5KU/VZvq6ygc62vUywTga8+Gcb9bw9AVuNWlItgwwPuogZwzSBEMbTumjVI eqHDK61KFsqZm8lfV5j1puSL6mJL4a3AnCUp+n5ixXFwga8TYOixOA5unSpdKAy82ygo ybW1EVH14PyMeaDs0NarCUxCost3r7bnWwge/VEkgKelC5aTyhl2E45wErAcQVgMGZ++ zW9A== 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=R9dUf6h0ZONDc1o4IvKX4JCSR1LfcFcW4NQit96LWug=; fh=SQ7CNWa0zFttHFcE2rhlcoto5fnVaMnmtYj+DSd9c68=; b=AM3MfHTAR4MIoqvnugWKWJCyl6z+U1h/IB3C++2YL4y2c2Tarh6/IxHhkSLYDhrvdH g9WgMALlHB4XutBHADFmd8/zwHHRbo0CYaOoZGZlENNtK1iXfDKEJv5IkeWGeHdSzsWE ChFqcEq/mdszUXbx4oK3EDqMkGv4FMkpWPP5XEAE/m6g4sGuwKDq88JZ/mbFnkfibDkR /ptpY4O3tqBTYdbCob6NdVxbRWKJnHkwNcfQ6rR/gjYtOzu2KZE/SA0HfIpHnjmjOmHj UjzHJN8qzWMGap77MCbTXff1UBE8TgOupuKpTCIiFJuyjjj4TqycOrpDAodANih+WHkh kGfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fxjG3anD; 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-174744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180e366si1823435a12.582.2024.05.09.10.48.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 10:48:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fxjG3anD; 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-174744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174744-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E011B21BA7 for ; Thu, 9 May 2024 17:46:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B26577119; Thu, 9 May 2024 17:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fxjG3anD" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 6A8927581A for ; Thu, 9 May 2024 17:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715276763; cv=none; b=SQACKrUzro9zFzMi2pBAnBlubYJzXBQ12xBc61lgy9Z6GsN35M0IBtnODK2OMiPpJz654DowohmY3CjUoGqCeXLUEPTNAB4AQr8UGI3sh+0Yn+JY3sRXjzpMo3vULcWOykep3jIxD1fEWBE08fSdukdUdymmuyMy0Gyi3JyAo64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715276763; c=relaxed/simple; bh=/oSWOWjkap8fv/UuIsI6Isx0EXquObmcwzLznfIJKkQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SlcXOxukjJH1Z2odCciDVAFQ7wykaTAm3WdPOmhFxxshwqVDmBKjLeNFW2oTtd1nkGVLPFe8pvMoJWHJH62hKHvHPStMMO5Cz3jCODIB9IR0JQfw0anppbcKxHnND+VoVHWHNX87BGBnn42aVNuZCUmffrVp3LtfMnPMUfX/PWE= 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=fxjG3anD; arc=none smtp.client-ip=209.85.208.48 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-f48.google.com with SMTP id 4fb4d7f45d1cf-572aad902baso1526a12.0 for ; Thu, 09 May 2024 10:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715276760; x=1715881560; 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=R9dUf6h0ZONDc1o4IvKX4JCSR1LfcFcW4NQit96LWug=; b=fxjG3anD83hFoJAGJtRblIDGAlzmSLRG8ntKPrhQt+HieXxnkLfNrfeXZDA4DRCfMe sREmIk4QaB74Bb5+DiGkytekIaBjk/rvNTyhi/v/+B08R+Q8xkpAkxzNLVstuVDGDd25 GEmOAe0DeZO+QlgQrqL3aR3rKTQi9U4Emep9ofkbHs2DXyOlZ4NdO4/806fVK2YkNxcS 68XAqfV/h5ZcRctT01utJ8bJz8tN/N7w4zhbOHBNLRylB0WWfQX5euwEKpNKnO8tR0BU G2FjQBn80cFSqwU79je9zjjKho3HbMYZc8xJ1oeIamcwBM68P2fSXUSvRXeo5wFqsQOv z1BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715276760; x=1715881560; 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=R9dUf6h0ZONDc1o4IvKX4JCSR1LfcFcW4NQit96LWug=; b=g7gNTk5fhZaPALVocBSsetrybXeyOeGJ1Dx7jsu7tQcn5euDd7717k0uCiNhtGy3Iw sqif5kGz4au1tq0Vx7PGTRdM67Ow4IG8G7hhsDIRru8NZ9CN3SzdbTPeqPdmDE0OJMCN zVSwxZab2IAGifGiXtxokIkercnihVpf+1BJ1J7TVNtvwqCmyvNpdW2JbkWoPqFBId53 vuMKe6inqVSuY+2C+0pqxW0Y4bmMXRJhVtMgC4sfH+iWGogxWU2qqBs/VPA7WSnRUVof jvdQ6ztnRrW7b2QWLxKgQp7Q/4ei55xU023DtpaGeGc+n2mESUiI3pWSNeylr9n2qwZO q2DA== X-Forwarded-Encrypted: i=1; AJvYcCWZ+46pjsv80SVyd1PBatAYr7fcxPhD92ysJrHibWKeYF03w1elVIqZwjuyswCRFG/EMsrVLOC8EZvlcj0MhaJMyKWubqvRHkhvc4kX X-Gm-Message-State: AOJu0YxLwurYAo+G+Hz5tSIinhIaRL28FQLc57RXQvmKMq2hTBE/qidT 3b2250zr78ysKjsLWJeOMYh31+8yqwARaOJNaBshsWKXCkjR2hhYA8cqJ68XuCwgJTGMWRa3VbI A1Qr9q+dlR7TvuXpMG9YWt7paJNUBPlzwZNYP X-Received: by 2002:a50:cac7:0:b0:572:988f:2f38 with SMTP id 4fb4d7f45d1cf-5734f8fe9f6mr3018a12.6.1715276759326; Thu, 09 May 2024 10:45:59 -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> <946ae22f-a4af-448a-92e1-60afb6ed9261@linuxfoundation.org> In-Reply-To: <946ae22f-a4af-448a-92e1-60afb6ed9261@linuxfoundation.org> From: Edward Liaw Date: Thu, 9 May 2024 10:45:31 -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 Thu, May 9, 2024 at 7:37=E2=80=AFAM Shuah Khan wrote: > > On 5/9/24 00:13, Edward Liaw wrote: > > 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 t= he > >>> -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 > >> > >> 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. > > Please send them split - it will be easier to review and apply. You > might as well wait until the merge window is done. I don't think > anybody would have time to review now since merge window starts > next week. Sorry, I have them split already; is it ok if I send them now? I will be on leave soon and may not be able to get back to it in a while. Thanks, Edward > > > thanks, > -- Shuah