Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp457547lqp; Wed, 22 May 2024 09:19:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWm+tLyIAB1eWHp0fZhi8NKFgXJozK3Ird6JuG7V+CAZsArBu+x6r/QL2zbJ2Q1NginAGwE0E6WimFeCkmZArC4eN3+cXFtgqE0/2Mn6A== X-Google-Smtp-Source: AGHT+IG6pdFAsW3vUiedfLlmIaREWKprRzY6ohiA4TSLgk2moe4PVyGyqfhvyO/VPEsZ5W1DaloC X-Received: by 2002:ac2:4650:0:b0:51d:9ce:c282 with SMTP id 2adb3069b0e04-526c078364bmr1594022e87.46.1716394791651; Wed, 22 May 2024 09:19:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716394791; cv=pass; d=google.com; s=arc-20160816; b=ywJrfwa1o2zl9YxyvhVh3z7U4eXdTm7C3L+Zxj2rptYkalxnpax1ZPAO7wYFAk5vWc xTeXCbmmnKs3xoAxTBNRS8LLdJ0FDRC2n5C+FaN6jezbYHgtEfvuFrK3vGiEC1CCh/Vt AMFVDz+dVSBG7mMEtqXB6sj3Hahw+S7zsGwsH0vrURrFDeN2J3MLd9W7C03Oaph46+ld oduRmuw+BSv2yEjD+0OWWo/mx6goGJO4xi9dP0vITLJXC+8yabrw2jxjTS1xyl+ns8Vc 7kMHmitt7hhY0tAXTXZrJcgsyygEPLbBF05pfBR65XgNAkd/Kmb2O/HXgmy8oWYKT8Nc R5Dg== 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=26coTTJPMwihRdwvqlxfLCNSgtD/ruUTDG9z4IGxkNE=; fh=VcmHKnyTJmLQHh8yWlPgsIcNKTpTjIqmMll5zD/uIu8=; b=miEKMpOt6EfUOhvWgWQ40sn2IAe5nwoK/sMbH5crKuIOatT5RHIO9hsUQQgoUe9iXC FcUIrcZJ6tJXUdXedNE00tSx74zEmYzLnmPtTilomUPMi/44t96BEFboWZ9C+SmaDUVM XLc9e/tINcyfc27XFA7DFW+UfEpHkxY5CTc/7zTEttjA3PkTFrNLCtSN3rdXR1u97q6c Bwls9k3IZC2QfAoIHEiy+XBOaiqvbRcw0hyj+qUN/dtmNYZnw6G4DZ/Qj+94aouLGTAZ rnO9ziWuBNaGLeuCwk8QSpOlReU9H9AETinM9YF8kbk4Otn2/ZAcDPdD11AD789PeY+3 t8sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="M+yRx/qJ"; 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-186488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a61a65a8a6asi332521566b.892.2024.05.22.09.19.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186488-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=@linuxfoundation.org header.s=google header.b="M+yRx/qJ"; 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-186488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186488-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5BA801F23744 for ; Wed, 22 May 2024 16:19:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0488E13E888; Wed, 22 May 2024 16:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M+yRx/qJ" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 C625713E8A0 for ; Wed, 22 May 2024 16:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716394777; cv=none; b=LVEsrw6YGDhWqvxCygxuSDWaWiFdybUj0KvBTHA9KxYA/aWxHu9fOS12VWqK/ZjN4ISknthk9Shnn+XUfgRwKgzud2uNqaGF7+6n0y3QHuXvB1GcPC60DYEHNy3yQmhnIdQ97H5Ch9zIXZ8DfgGoJXOUSVNQdBqOZ6hdEkBlA5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716394777; c=relaxed/simple; bh=gRGdiC32qyMGfj6WpEKPIdOaphnyHadvcat7Ef04QOU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Q/B9PfVnUo24H7vbr5owG/jn+bwhgxVBirRYQVJOBe96PJP7DoU362jNU+nS3nFHAb7B4WKd81yQRAHNfcpPVuyMyjIsU3qxo+dkQnYh9QMpg5mc9iusNmX9K4cVjceQCXqKXpVmoWgRpIObIHjE3OSY9BI7ciI4PuP07eNwTZ8= 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=M+yRx/qJ; arc=none smtp.client-ip=209.85.166.42 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-f42.google.com with SMTP id ca18e2360f4ac-7e1b520812fso35658939f.1 for ; Wed, 22 May 2024 09:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1716394775; x=1716999575; 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=26coTTJPMwihRdwvqlxfLCNSgtD/ruUTDG9z4IGxkNE=; b=M+yRx/qJyV3krTJFoIJpvzfi5HD9gPOjhWMFsZvS2WRQuzcBNB/hwbz/AHOa4wY+th melQpBTsw3k8gyBdsCQAWDwm4ORJZG7qTjNgWuvT9k0e08W5V/6Bbgm1DM3CKge55wHg EooZNmGoEJrYgfRZu5Gh0qTVOiGcGlDf3K0y4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716394775; x=1716999575; 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=26coTTJPMwihRdwvqlxfLCNSgtD/ruUTDG9z4IGxkNE=; b=cdzWrjHq+mbZ2WL+PtKaTT6llBYd5gBoGJnP/VAiLKDS/JU4ZCeh+wmfjqmhQeFW3U UPDFMsQQfsgySSlo7eSvokxK/ncQAnTMQFr9EtL6Au9HDBICzTjBnjP/VCP882uJGB/r r0+DLfxuCIafSqu9xZEgeNeVd+iCexXYHOKYP+lCaEW5l8Jld+66WzJOksEgRuMfY/Ul Lm13w8Djw1EQ+38sIr80jPNsIBSiYxlhXspOy1Qb4bhkPwqOcq02GqFO9lkWsKKx/eSL CkJ/LlJ8bJq8EpHqeQGs2e8XW/CMFABm+ZvGFls9DyXu5cYOIUPAupdjg+VUn0rdoVlr DvNQ== X-Gm-Message-State: AOJu0Yyh9uFN7bdvH9DAmZBYub3lJkVLHTU59b09L7rnacZOWd6d4TRg ++//83PRhD7FTk9cWsIcNIPvC0tCixXDyK4vn2qcrGnOzERziksJfTVddxpWHq0= X-Received: by 2002:a5e:cb03:0:b0:7e1:d865:e700 with SMTP id ca18e2360f4ac-7e38b2004fbmr274656739f.2.1716394774799; Wed, 22 May 2024 09:19:34 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-489376fc6aasm7421787173.174.2024.05.22.09.19.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 09:19:34 -0700 (PDT) Message-ID: <6caf3332-9ed9-4257-9532-4fd71c465c0d@linuxfoundation.org> Date: Wed, 22 May 2024 10:19:33 -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 , 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" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend Cc: 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> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240522005913.3540131-1-edliaw@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. > _GNU_SOURCE to either be defined prior to including headers or with the > -D_GNU_SOURCE flag passed to the compiler. > This is huge churn to all the tests and some maintainers aren't onboard to take this change. Is there an wasier way to fix this instead? Please explore localized options before asking me to take this series. thanks, -- Shuah