Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1207143lqo; Thu, 9 May 2024 07:37:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk29HHuza5Wauc4y9qxx/tvm6f/BBCs5bx98WLxWytEpsglvc3AQRVr7+rspyNz39xIdd2xWfnCuyTRIyuLIb92TIrRzKX9GOYBRHAAA== X-Google-Smtp-Source: AGHT+IHeKbHa9Wyv9crEs7CvyAabPS6+2IslI2EbtV7f4Leaqki4L7lnpsARQld1RCh47kd0HE7f X-Received: by 2002:a05:620a:1374:b0:790:8926:a69e with SMTP id af79cd13be357-792b280c323mr579363685a.74.1715265447716; Thu, 09 May 2024 07:37:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715265447; cv=pass; d=google.com; s=arc-20160816; b=IorIZvRgMw1Wp16XSlcGpFMo5yR7Gzx3VRST2V9sErDagl8hLZxs9Bx6p00QFThjzi RGmNVdx2zUOZ7J+zwoLL2Yr6JmhaiS8tW0gZOpbl726MU1/NI4Vrgs4JtEr3l2JANqbp CppwQhvClUyMJr2Nz7Fu+R83WGhBP0ZcHrW1rvqAYSIbMhsH0j50eU6e1LUC7cvWftPK hghRSGbNNUWrXaeF/7XLfknWIjw8eDRryax5rVmeWECwXulTnAMsBL+4rEXFrysvcEH7 ef7LV6Qc5yZmhow/hKotnlMXDqI2v2wensCkPBRK0IYP8jwcDERtmnqyBkCWT49663Sb r+Hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qhunxhR/OF2icvm3HmEsNbbwCxzb74IsXbKxDT8qkPs=; fh=qkJ/9d9sB4h6F6N9AWEo7o1h0QiNoYPjuEgkcVaa8Nw=; b=Mtr16bOSbhMFfALu4pjkIPfIZPop/vTxN2INrlKIkYBiRSrKF8d6y3Iup6no9OG5wB oQtq709xkIMQE2PAE7QuoQhGn+6H5wQWzNaGSCdl0h0qJp2n4SLigk6/9yQucgIGTYTp iGlCluiK4aFu6VEl1ShQ+JxXgJ1QTOdRaFodkxd34XBcytHHa0/dWtD6ZaJ6g7bp0cmW xPj9Sr5tVT079XTpPOKg12VzKQsYnIN3ZGcAwvtEcKe1/2732HYDkuq0tbvWizIzzEi5 WsV7yBue6g0XY52CHdteyk3NN5cFinuia6FpnAN78DnGf76AECVd6ib9hq/maSBQgpk6 KTow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=NTo7eWSD; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-174597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf297883si152634285a.202.2024.05.09.07.37.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 07:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=NTo7eWSD; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-174597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 4C3561C20BBF for ; Thu, 9 May 2024 14:37:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDFB7148302; Thu, 9 May 2024 14:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NTo7eWSD" Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (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 AC13C3A8CB for ; Thu, 9 May 2024 14:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715265429; cv=none; b=IoBZ+p5Z7/HVgEeT9t3dsy3eBsDbUYY3GQp9jtz3kEodEGKj+Z3PPxNZjtcuxHqbjmio/4AyqNn6lJ8TiOjKXMAdC85kTWQQs5UpNZMIqGhLK1fmLP+IFUvLGF/0O9IVFHR/Oe0jyrzDlqk78d4VCZyVPcoDL1xgfNQGS8kgPWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715265429; c=relaxed/simple; bh=rX2HhaPr9XjslEz/iELt3o8cY4WdThK1YOL4qhZC7cc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GBMESImrkE8IsgQwideId97B0DSpt46TVdl6nki6afp4d6DCOYOofMTHzegyTy5G7pk86wWzs8hr5wN5ePObeAwaVrwhYqc9t1jK1If+HNAsokC2wl9/tG1dWncyRXFh2CHFQjwHC8dE8nzE+opeG62pSOfYiYp4YTfvuDhb+AU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NTo7eWSD; arc=none smtp.client-ip=209.85.166.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7d9ef422859so8306639f.0 for ; Thu, 09 May 2024 07:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1715265427; x=1715870227; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qhunxhR/OF2icvm3HmEsNbbwCxzb74IsXbKxDT8qkPs=; b=NTo7eWSDMbAgSOT7CINCmQClTKuqqKFXzf8sF9h8V2D/TL6uzIk6kNIRhOOZdzEMTW mJ9+zmh148SCPZPrjx1yCxIGvBo6MHnlbazDh1HqKyqkHbDHYDUog3Z/huvB7M1KruTH G4D/ZyTmCb4BjkMlKuDOLN5gYiVRGa28cjD1M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715265427; x=1715870227; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qhunxhR/OF2icvm3HmEsNbbwCxzb74IsXbKxDT8qkPs=; b=tAMwwKX7IXaOGVkCTWvGAlt1J/h134SjP6nQcG81zmgZCjbco0cQ+9sZJP3urUyCnY USanW8+h8zaBoFhi7tF3TEZtij/xiVEa4RbIWg7bjZ+rW19sBXJtkuTG1mGebYbCykT9 +nywb7CIlyUJuSdwIP5og3ndugbmUzp49ekNhote1PXB/8+ksf/TLVnn0CkGIJ9JU52c THSWvUHfL5ctymr8MyUbJOvNyE5Ni01bhLQnIRRxWGQXmU/uE2MUf0+7aG8ghPwW80ze GuDG7QJrZiQWqCqH6/1kFcZD/irJaSU0IWkrTt9+dS+baBkyxDY3PTOeCHQ3qEvL6STj zSQg== X-Forwarded-Encrypted: i=1; AJvYcCWRlynEWu8Ws6ZTTGt6hLf1C9VqUHay1SXLaW/YIU6rp7zn5Y4xEa/wPM3NXxCUdCz7hJzhQfKhttNmcI/zjpapFHqa1728F8nTGMmO X-Gm-Message-State: AOJu0YwmEbIWPFQQLY+HyALKoJU4gwbiJTYCWlC/IlHPcJ6e/AZ1OC1v u8qU1/L4ePwMNp650tmOcCtCRwM63uRDQwi/d0ysab/NZtEhaCPxQlvfY1CCbXI= X-Received: by 2002:a6b:e618:0:b0:7e1:86e1:cd46 with SMTP id ca18e2360f4ac-7e18fd9a35cmr655432839f.2.1715265426750; Thu, 09 May 2024 07:37:06 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4893703c0c8sm386684173.48.2024.05.09.07.37.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 07:37:06 -0700 (PDT) Message-ID: <946ae22f-a4af-448a-92e1-60afb6ed9261@linuxfoundation.org> Date: Thu, 9 May 2024 08:37:03 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using 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?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?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 , =?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, Shuah Khan References: <20240507214254.2787305-1-edliaw@google.com> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/9/24 00:13, Edward Liaw wrote: > On Wed, May 8, 2024 at 4:10 PM 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-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. thanks, -- Shuah