Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp540799lqp; Wed, 22 May 2024 11:40:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYhkxNdXm+52uFJMha5MibW9OiP9Y6tp9cJh4su08hhka7IlI0ohs+v8UZULocbWDM8LzAOdivM/LeAMyuU5rCAhMmFmOYQROBLFUaWw== X-Google-Smtp-Source: AGHT+IEMv/R5RZhG8k+LYZAYU39eTgFHP0g08SyhCMUAb5uqy5sgLk29ioVkHXp2E63Y3wSBtNjS X-Received: by 2002:a05:622a:189a:b0:43d:e15a:92d4 with SMTP id d75a77b69052e-43fa743d7f0mr2835701cf.7.1716403255071; Wed, 22 May 2024 11:40:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716403255; cv=pass; d=google.com; s=arc-20160816; b=f8Qv6vmxwvisAjrGbrO8s8TcdThD+aMQ7N108DeHJipAQx7aaiMwzc8ZJ5rp4WTxgX KjALwFhdEvxCTgLNdwq8lRAb9xbXgDKVqupy8YRkNm2zZsFKBKXMKewEL9jt9i6fxwk1 WvOQbCoGnpqoWlaVLx+1sFIfAhHgYv/QLfl9Ik0fBMM9sD/gRXmxmCdHmzaPENKi3KGg joYpl9qu5P6CEQquuLBaoJImOu2liZeT4Su79tArYDxJV5EUDa6Dzvg73XmwOPC0rfhn FJaEBZ+qlCP/NdKtaVzAJ8cDlTXZOQXbpM0WEN8z7SpKqIxxs0XjPDyaPuCPfZDY8u2x s0NQ== 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=2CkJWPtWzq2cjcP7a09if5B9kWWmXWyc6FlwIT3mHR0=; fh=PtEJ4wdaP0LOeIxqa2/TMM/0+1Uq2AuVWov+MCOpSKE=; b=ru33rg6cXrEdN6puEDeoDHoJ+evkrdxA0vskEe5Z63eQz881kzhuNu5wsVxBieRVzM cm1HSHr4aFPdk9FF3is2Wiz6ZGwIq/VIY6ul0TxXewFh3jsJF0f3g7fXnG+G8VxAXK3S JXZ8+se+bYt2LYDKaxkur397zpy7+qHjd1Zpbd1w/wXd5zJBklAr5cKEqpoMHYRBmIpv C9Cqx00R1+8J6oNes/9LZmELlTHpHGmoRgUIwMvfE1ydyw1AzdhETnPg26fl0LSRPSBC HR+qLBLOVEBqSoNK1HKmbf+Hu0bLnYyBuu2ar1hHaUfOuhh1YRRDFaE+DimV6MJsWJPD IdZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="ZiAfGJ8/"; 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-186622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186622-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d49f6si53466571cf.673.2024.05.22.11.40.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186622-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=@linuxfoundation.org header.s=google header.b="ZiAfGJ8/"; 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-186622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186622-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 B695A1C21722 for ; Wed, 22 May 2024 18:40:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EFB414658D; Wed, 22 May 2024 18:40:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZiAfGJ8/" Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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 35D23145FF1 for ; Wed, 22 May 2024 18:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716403240; cv=none; b=GBrg78ye1DmyGHca8NzZGY33rOHbDUtnVIUcEMdyRsvNsSiENuLn8zrxDaoaOld/uGb/SDC2UqH29fkAIVX9I5wc1o1Ed2JDkLHxVheyMqyfLJtI6vkQf/BepaYA9Kqf8CLqoAt0eMgrfbWkjoZdU2wCd6MKSr45q04lev/al6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716403240; c=relaxed/simple; bh=pvfNI1321JVtef7N+59lYxiObUuoIkn6QTtflB1MBjE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Jmgk/8BFp0Ry6MWTPK3F3geDfpjPq8uLNCfRC4QDpDExZRj6LJOyjaxBamgFhCw7/bZj4VEJiOvrXVTCjYCQc4S/nD91KEni6ZoQR7HgRlcEW7ylBTT68swhOyFCYcfxTBtxNty8ZQ4lSbt7CXB8a1r90dtLOj/7vu+TlooZ8oA= 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=ZiAfGJ8/; arc=none smtp.client-ip=209.85.166.51 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-f51.google.com with SMTP id ca18e2360f4ac-7e1b8718926so44520139f.2 for ; Wed, 22 May 2024 11:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1716403238; x=1717008038; 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=2CkJWPtWzq2cjcP7a09if5B9kWWmXWyc6FlwIT3mHR0=; b=ZiAfGJ8/7Tp3Wp5CYTquG8GZV24qMCLf0ceknIzVUcWQ/8PEFow+ystDmKwo3No7nx Gs0VPJw/OIHVC7sIc/TknKQExOnL7DRsjptWGKUDfxLt4Hpfmkob/lyeltGGr/tH1dpJ g8lwbAoUPdmzQL8TWpUmDt1wjZrxz0Fp1sbNU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716403238; x=1717008038; 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=2CkJWPtWzq2cjcP7a09if5B9kWWmXWyc6FlwIT3mHR0=; b=NEiXXbYFSFWJcTlWPz9i1OLi2IenkeDgEY+MbdLaCsWd3Auy/U2d1XwY9AIW/93zS2 hZAjzesXAYUA05KZp/a25xFDkihmrIlWcH9Msim9ZNUpknBziOHHwqxXWzQI1K7ndajS 9tTigZu9kQ/YGvP4rJIttlQrAiQYve39zEaHg0CHnRhTD2Xzbxj/Nctoz7kjNRENh0gd IA9o/QyeRB2fRkUzOPLkD4OS46PpDB/byMSz3YpI9G5VPBQq4FyAwhaMoM9SgXqgKKmy YJbjWmbjIXTacN9t73NyCZlIHlq2oeP0jbsLw+9YoW19SBov3btyj2fIjei2YMHiHKih 3K6w== X-Forwarded-Encrypted: i=1; AJvYcCXUB9MLQD1AnbkXZMO23BXS4Q0bL8ECxiXCQrvqV7XGQIDtlpZIcUJcaoyYrCnKG19XXpuGw+9/NUWQhrsWADcSWRJoeirN0qwS0xLl X-Gm-Message-State: AOJu0YxzQWcYqzEKjxTPqJEcNvMy/RBnMb4AgWXkxJgUFqHeZmSxTXtR tRtlq2wWftmhdDLo0kmhPCfji1Rqxq5GUQDo3z/dnJ6cdzXQT9fZnIzcttmsEu0= X-Received: by 2002:a05:6602:420a:b0:7de:b279:fb3e with SMTP id ca18e2360f4ac-7e37db353b9mr293535939f.1.1716403238250; Wed, 22 May 2024 11:40:38 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-48a42b0e43dsm4496318173.101.2024.05.22.11.40.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 11:40:37 -0700 (PDT) Message-ID: <7a7d6b6c-0f28-4ffe-9bf2-a25c088636db@linuxfoundation.org> Date: Wed, 22 May 2024 12:40:36 -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 v5 00/68] Define _GNU_SOURCE for sources using To: Edward Liaw , Jakub Kicinski Cc: Andrew Morton , shuah@kernel.org, =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , =?UTF-8?Q?G=C3=BCnther_Noack?= , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jesper Dangaard Brouer , John Fastabend , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, Shuah Khan References: <20240522005913.3540131-1-edliaw@google.com> <6caf3332-9ed9-4257-9532-4fd71c465c0d@linuxfoundation.org> <20240522101349.565a745e@kernel.org> 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/22/24 11:44, Edward Liaw wrote: > On Wed, May 22, 2024 at 10:13 AM Jakub Kicinski wrote: >> >> On Wed, 22 May 2024 10:19:33 -0600 Shuah Khan wrote: >>> On 5/21/24 18:56, Edward Liaw wrote: >>>> Centralizes the definition of _GNU_SOURCE into KHDR_INCLUDES and removes >>>> redefinitions of _GNU_SOURCE from source code. >>>> >>>> 809216233555 ("selftests/harness: remove use of LINE_MAX") introduced >>>> asprintf into kselftest_harness.h, which is a GNU extension and needs >>> >>> Easier solution to define LINE_MAX locally. In gerenal it is advisable >>> to not add local defines, but it is desirable in some cases to avoid >>> churn like this one. >> >> Will the patch that Andrew applied: >> https://lore.kernel.org/all/20240519213733.2AE81C32781@smtp.kernel.org/ >> make its way to Linus? As you say that's a much simpler fix. > Thank you Jakub. Yes. This is a simpler fix. > Right, this patch series may be unnecessary after all, since the > problem is fixed by that patch. > > It might be better to drop the series unless it is desirable to > centralize the declaration of _GNU_SOURCE to the root Makefile / > lib.mk. If that is still wanted, maybe a more palatable approach > would be to surround every instance of #define _GNU_SOURCE with > #ifndef _GNU_SOURCE first, then induce the change to CFLAGS in lib.mk. > That would prevent a partial merge from triggering build warnings. Please drop this series. thanks, -- Shuah