Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp22566lqo; Thu, 9 May 2024 11:20:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ5noEicNVDNX10bhEVmrzdQj0V94skAipTFtIN5rBfU4GDTMRh79djGOTDfw1hcPm/WhwT1l2QdcrNjCwR/twfGJ9ftzHtNJ4rQujVA== X-Google-Smtp-Source: AGHT+IFi8ULWFLj8M65JwLmpI85RBlkp46LAgAASZUoZkIkRFGglz0kvNXdYlONGo3xpMQD077sZ X-Received: by 2002:a50:9316:0:b0:572:a76e:645a with SMTP id 4fb4d7f45d1cf-5734d5c103amr331092a12.12.1715278849006; Thu, 09 May 2024 11:20:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715278848; cv=pass; d=google.com; s=arc-20160816; b=M5IhilRqzpxfjCpeNZRT9LqC9xDhYD5k3M7z9Nq8ejTB4q9TC7bf792Lcf4z7Lt2bL iZckHPczxq94lJ0RBIIh4bkyGqQrtsTvef4/OxjIsp49CB3EgfuJz1/DjzFZhbIbMAHt iokBDsG7FieLMQT+FLGAONbw933TN282oa+x2UCrWh7z9GLy+x3e4SZbrlJAhQD4fNkd +kmVnyQtS8HuWoHQB+87GRhnjDS/3W+zbzZWnT86cIzmWG5lCFdLSfai9uqNP/faI1mU JfSgUUVD5wsKm/BTUGzZMmPyCMVSZ7NA9vu+/sVeidlfiOMTg7T4P2q6TDKVq2hlpMK1 j+Rg== 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:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3WxD2vUVxTbhr4aewNpRf5wpftmhmSVdH5fPburQYnI=; fh=CZke7EG8VakOgYINE8dETfpnVsi1Eshi/Hf292ASbbM=; b=FVZdC6FlQHWFzjQjRbUvY0YzCrbt00FVCk6qsf77jX8UP0tewi69yagUetexSWZ7PF n+GgZ/88OIV4V5OZZCbnhcUsteRLY+10Jerzgg7F4RCaTr0bNGrdSGxLvpYGBK8OMq6s ujdOY9xUEuNbZOJdXxx2ODTm0sN58e1YOr9q7HbtvM8XYPO+tlmAL48AgTEQdfMmF088 mW4RXFGUXsSnMlRC2wW15btkRlDZSRWxjvbmoWCxMadffoMhVSAP0f2ym0sV51r3iOO3 Uulj9GDVJia2U6FuIjCJA4JIGVtX0dOPh7Nyh4dx8Vzg+y63E1bYbRA52vDqhLO9d4uf 4yCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y0vwhbgp; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-174761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beaca64si1016690a12.133.2024.05.09.11.20.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y0vwhbgp; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-174761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 91A531F22D89 for ; Thu, 9 May 2024 18:20:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE2677D3E3; Thu, 9 May 2024 18:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Y0vwhbgp" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 399E2770FE; Thu, 9 May 2024 18:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278820; cv=none; b=FMnsZIY44/vqA75SH/j64Qx9W8BkojnH0OKF/6pHkqu+PSJXJZw3KgOwzamhxeDDDd2UoJjPJ4El4zKeCoTPZXmZo4wYuCKbM9qDoCzMro2p7Q2N6LhcUDD4xBfWsG0O9b66ynchtn0OhjY2aPSdQzdUIauiyXuQhEJW2oA0v74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278820; c=relaxed/simple; bh=JCJaK6QpOrmmUJdi/1h2/P/m5VnuJoQJ8ijlBJBZs2E=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=E8cxY7+zC++X+urFqgMQxq9ZHtP3Hq7NmNm/UjICxXOYm1BDbRQBrLLrvkcx4eevo3SS4zdA7JPsxuskc651xjxDmubUe41XgC+ZoOYcC5nW0OBgZSnXB0PfR7hC1vsJ14nkqv5QoQeYiiGCoshy1wqB//9TaELbAy9RKwmTkVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Y0vwhbgp; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715278815; bh=JCJaK6QpOrmmUJdi/1h2/P/m5VnuJoQJ8ijlBJBZs2E=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=Y0vwhbgpxSGiErJBlZANaCoV14K1sUaA4F/ooMPA8bO48t72Fpno5DrnfALIMJiFY oMSvCEfOkwdTnfzldtNTgWgnNeYnX0lnmSBwYV+uUcXI50biIzPUgTSdbJDAk9h9/N bVUTOACTMW2U5cMSjfFt9b0R/BiIAN1Kzg0OIMCCtoqr8O1bj2D1Led/rtVGtGTVC8 kz3S35qqjR2mswHsIzoVynyPqK+vGV6uTv4IAVR+VARRqE/hZwUo8M6kQ1/zzNJO7N IQqLkWeZKdjhwuxngilpfTAlT58QqNdElQbuZGDixBXFgx76yRt8hchoMtP4P0BWps 4uG5Wxt7oOVIg== Received: from [100.113.15.66] (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3ED82378214F; Thu, 9 May 2024 18:19:55 +0000 (UTC) Message-ID: <57f47bc1-972c-45b5-81ef-d8269dcadebb@collabora.com> Date: Thu, 9 May 2024 23:20:19 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , 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 , 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 Subject: Re: [PATCH v2 0/5] Define _GNU_SOURCE for sources using To: Edward Liaw , Shuah Khan References: <20240507214254.2787305-1-edliaw@google.com> <946ae22f-a4af-448a-92e1-60afb6ed9261@linuxfoundation.org> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/9/24 10:45 PM, Edward Liaw wrote: > On Thu, May 9, 2024 at 7:37 AM Shuah Khan wrote: >> >> 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. > > 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. Feel free to send the patches. There is no restriction on that. > > Thanks, > Edward > >> >> >> thanks, >> -- Shuah > -- BR, Muhammad Usama Anjum