Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp509589lqp; Wed, 22 May 2024 10:45:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVf9OjHxTbDKGxpoQKDXv0E9mCd5LmXLfMIpktBgLnenKi3MPRKH30RJe+E9EXT/IwhGmL5GXKgpGF/iAf6ZV78npxY5h1NGvhrYTEzzw== X-Google-Smtp-Source: AGHT+IGNHE5jSkwcH1gh57YlkvkorLIryr3b8zqlE8FfyCl8xJR/TgkRib3ZC5IU+XjitpFa2gaC X-Received: by 2002:a05:6870:8a1f:b0:24c:535d:9b2d with SMTP id 586e51a60fabf-24c68aff534mr3921080fac.32.1716399917868; Wed, 22 May 2024 10:45:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716399917; cv=pass; d=google.com; s=arc-20160816; b=zepQWB20D1MEBt3jrq8/qVcP1kOaUyRDMBwpHfZfqYbbY4/g2TF/62e0LC54iWOD7f XYY5KVT+aSR3GTggZPgobcEXV5XsGGLsjClo2gWwih25IuSDNS7ZHNqf3ljFKMjtW8MF qiQNUWwx2m7pH9CdYkm4TLT3AtZninlD01mULN5wRRGa33kyR1BnZ/Pl6E0L2CuKJkQP NdATEntsZ7Qa30wOj8z7uV+SMW06uS0OtTgbOSBTuCwBl0pkc4sXA8g1aEl3uKZ5hp3u y3k1kl6neEYLLuRjnB2RF6gOmXTdOUaAXeZN12woLh9s2Ydbr4Hrdd1UPBEUIhAurj6c DrHQ== 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=46egnT16tVwxmfnNBO145wZ0ppbM6j0s2l6EqdlS1tY=; fh=6x20yTg6pHTf9MxGkLI1MPjoLX0nGcX44xEAWmAKbA8=; b=dN0yAWlBPB+cu6M5DCJTkXn7g5T6ooH26ERcFnvj4ajLb4ckL0lpxtOjeILkzTHhzg tyIDoxdHAyUN2i8gYsVHeXrVvuAZF4YOJkvPxOdoNT9aPQd2Iu8jBnV1eKVKfBegYft+ tMyvvY0DUX24eEGs5TCTdRAbtmxQoE79V7ZngtUspJk464yPfr3SapPAfRuG96STokEM N20iC4IljdBhaDxsJKUkuwupNLARZL66MFVnxm+Yadurpk3oyUg0AjtNH+3VZXM31Vlc Qv3Kg2aNG3falJJXZo1o+lrPDzK9nQnI/yQa7S1Psx8/o4slcWm/a9eytydmt3YefVxH 68oA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bDr7EHc1; 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-186569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186569-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 d75a77b69052e-43e21c9fb97si7734271cf.204.2024.05.22.10.45.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 10:45:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186569-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=bDr7EHc1; 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-186569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186569-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 7E55F1C21B37 for ; Wed, 22 May 2024 17:45:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23D661448CD; Wed, 22 May 2024 17:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bDr7EHc1" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 AC36F57C8E for ; Wed, 22 May 2024 17:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716399907; cv=none; b=D3jziZH9IADUAirQ6s6lw9X/LtwdkcI9TNUo/bXdV+7sL05CMZOgPydOfUmczFDWX5kjopUE++daxU1n7NkOwkZJl7XLfEqRdvPlPhmeMLl4eJ9B7lfUhW6rYiGmTK3LwSv7I1gP/YPRVQN4qWvZNVgx6Dk5jY+6ZHdyu39jZ9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716399907; c=relaxed/simple; bh=3aciCKn2C/o/gcIQNjenoGJmglB3BvsgYJj98ymPKks=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=c5F3XtnSmsj1fF/zJinoYrx1VaPUEtuVIRxSxoJZvKAiql90zPnXO/9Zxf/IYuehRJsnAu9xNbjlmg78rDu4kNUNzFKkeQciI2G6dFsZkqQzW3njgr68UsnQ7ZQoQwbexobI/Cj9pWM/bGPvO7Maw0wi/LqGLaUl2+Mo9i0uiyQ= 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=bDr7EHc1; arc=none smtp.client-ip=209.85.208.45 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-f45.google.com with SMTP id 4fb4d7f45d1cf-572f6c56cdaso1347a12.0 for ; Wed, 22 May 2024 10:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716399904; x=1717004704; 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=46egnT16tVwxmfnNBO145wZ0ppbM6j0s2l6EqdlS1tY=; b=bDr7EHc1MQM5ge0wW8OyziytM+KI9E3eZrfmhBpB7f0+41x3yLL9B1B6ElILkf29yO Pk8CobJhB3P8uOybyqMajfjrh99bd+lgZo+zxeBdSiJpC7BWjSFdtt2wnwuZ9t9H+Ycd b1/Pb4jUGgbxIUoPA559+8ouk0/BKWUo9Hf79eerxdA1XwJpx6KzXMwes3KXToRoZPvu MVe3Zz+NNTK4CuFUwIVrMzK9XJ5QLzrnAT6T3tl/er7MmBxzu8mgRuhx+1Nmsg9RdGTC AfUE5qhwqdndruylfGtcaxXTqklGRid7IdYw3uY0QiLCeI4lEI4l/c5HezuDjyn6hpqF 1Saw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716399904; x=1717004704; 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=46egnT16tVwxmfnNBO145wZ0ppbM6j0s2l6EqdlS1tY=; b=wb0icrZq4VNK1I7r4N4wuDVvW0kLq0WtFSPlhqtbmDFTBY0PFZ6RIKiWCng4rXNYma PARZoGjmFe/T+1IxzfCSagfQ0Dx2Qbtbo14zhgVSxS5ujheBiCMZ5x3mvNIACr9LAWZ3 8hfVD+22QMOs3SC7R1ldFn6mUQ6Q7z/k9GQSfgvaNw5vHNTaZbZhC5cBt2HUqiuxLZMV PXzUhAcU+KSK/Wvk5OUbKUZ4b6luc00AIUZnlGW08VOaECPV3o3hSf/OEI/HiurknnW1 ugYk0BERXqD0oCu7BOgHjdDBIfN0SEQ80IKNmf/f8EH0uaCWHAfFrhCtg2Qzx/grtCaU Eb2A== X-Forwarded-Encrypted: i=1; AJvYcCXzUpBLekZEYE3+Wqrb0GTYYzwqWwBE62XOnZ9ZFcpJea9HxFXYMqt0LDnmQ4FT7IUx8SXm3dcC9wrkvTSJf3VyMsJihXY0/UC09GHA X-Gm-Message-State: AOJu0Yyt7hg0X3CL/880pTQ1FgCmn6KPOornnMBfZVSYjaqEmV2tW7UH 0zEj2IE6tNmDJrnlYZEWkiTtU8laR0+xozgbeqiH90+xqzdDwkMPeQafapY0kIT0TozoWyQQi09 zlVre3hrwVflxKFo5qHSPBMLIqahRgLUUA9py X-Received: by 2002:a05:6402:2685:b0:572:e6fb:ab07 with SMTP id 4fb4d7f45d1cf-5783237b9e4mr236808a12.7.1716399903775; Wed, 22 May 2024 10:45:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240522005913.3540131-1-edliaw@google.com> <6caf3332-9ed9-4257-9532-4fd71c465c0d@linuxfoundation.org> <20240522101349.565a745e@kernel.org> In-Reply-To: <20240522101349.565a745e@kernel.org> From: Edward Liaw Date: Wed, 22 May 2024 10:44:36 -0700 Message-ID: Subject: Re: [PATCH v5 00/68] Define _GNU_SOURCE for sources using To: Jakub Kicinski Cc: Shuah Khan , Andrew Morton , shuah@kernel.org, =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , =?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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 22, 2024 at 10:13=E2=80=AFAM Jakub Kicinski w= rote: > > 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 remo= ves > > > 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. 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.