Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp270851lqm; Tue, 30 Apr 2024 22:41:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTn9tWII3zfRcFpf1Fou04IXElj1drnjKXeCtC4lijquHTQI5ntVDIMAzLyiw4Kpoo9yx13S4eO7AA6r72OHc1fUQXqAvF4kXM8vH63A== X-Google-Smtp-Source: AGHT+IHK9pcZi4JaROVpGBGq+M5ge+sz8EnzQWKvYXdQKDwN5LTrYG9c+4qdRv4gQREuIl+yd4rZ X-Received: by 2002:ac8:5710:0:b0:43a:bcd9:5d71 with SMTP id 16-20020ac85710000000b0043abcd95d71mr2882889qtw.11.1714542103182; Tue, 30 Apr 2024 22:41:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714542103; cv=pass; d=google.com; s=arc-20160816; b=Jh3bkknQ0Wo7OqdQzdwz9YVnVJMQily63ngp1ljNoicQlfvbymBpctYLqb1W1MBQ6S DBtgtph+FeKdJKXIaNtKxq/wnxcB8QtURD/A5x2JTiaoYBlQbZEhOn/AaOguuTL/ItU4 JD2R8U1RACC0/q3ADIEQfx9zg2o4RmtM7q9rJboSltWgtJosxNGk52NWk7xreahrcgVI t7asISinK5yCvLHq0RuqqPS9cA9D4eOcp5qPDfoAqYOBawn5N6JTl4lNwIS22M0/fKYk fZmk4C6IO4tkIOtoH4KNHOKapej35wG/2OexxlMq+I9gUr1nnko/9M8/P1B00mJDzruL GCCg== 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=yYAxJKb5MKmYhdl1tqyi9cvAPaR8eXs90/Xq5kZ2JBY=; fh=MgELQYWbKNCuBMfzkZS0hOvtYuS/AjqkwkFR/9dWimA=; b=GYBJKX56ZYbQPycU3FM4uLfj7KP0QvgMoqjUB9eNEf4TlNAjQ9EgRmONtNLXWTffcZ hzFDl/Yixc/nETjY9qP/iSRw2pEOwJP2glNrxHeFGXA+cmtpj30riR7gPbOky3/xqmc0 ZQYvxWm5p7jEonE9baHoHfgpjqSS0nBfldg642P0rd0su8APGoxGuNmCRP/wMHYDiwnD YV8uvg22HJGgKkY9bSeCPjxAa7oITfwW8M2KGfPDaSYx4jBGz8O0EdTBJb8WnKUXHGU+ kT6qmn8ZfLkrBTmJMY/PePJdFSin9sgyXudACEIM1058Wd3Mez7SMZIMZtc/AFkIRqCG caCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VoxZFK9q; 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-164954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h14-20020ac8584e000000b0043ab64f612dsi8747806qth.202.2024.04.30.22.41.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 22:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164954-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=@collabora.com header.s=mail header.b=VoxZFK9q; 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-164954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164954-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E34D61C2225A for ; Wed, 1 May 2024 05:41:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D03C4CB2B; Wed, 1 May 2024 05:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="VoxZFK9q" 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 C93DD210EE; Wed, 1 May 2024 05:41:27 +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=1714542089; cv=none; b=f6PfGum+fNGWGvlvarjEOMD9OYq34iIHXb7n64jYgsIlfdx8VUiwGTxoud9VTRU81aXy0rQGv9/vEDR1PWJwNNmTgh2lcgM4hW/N+InRHAg0/JnD6tohlFifGklk1Mh/hA/YiSQ/JawmsflerL2Zf1KSh4saPoPDZhUGHqcedBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714542089; c=relaxed/simple; bh=HZgy8IynNapACv9oqb7dNMwXQ5pxb+tDS7GOLDQaU8o=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=IpE9ejLQ7AYdidPWsqf0eah61pg0tMCXTRaAwDKd149QBBgHSndCN5ZRhn7Wir7348+wapKIvv07Hc9WSId78pFVGFbRlJ/r8V2skK+5J+C3MecSm1ssmVncEnQGNUdYk3S8vZjOdxYIiJ1K/dnsO9tQvzczSukHY2FGvYOBnck= 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=VoxZFK9q; 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=1714542085; bh=HZgy8IynNapACv9oqb7dNMwXQ5pxb+tDS7GOLDQaU8o=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=VoxZFK9qLekCXwHSd1rQlfp3fMPjFnhg+jfer/8H6urzJOMThKTlcnbS6GVIqPlgZ QENMzmko43a4exh06hZBx6x/acdAvj0Qr9aPvpcG46Yn2/ZWwGGSzs3OfJRfgGE6r1 v47+WFKIf/UE+2dF4efYNFmGTOT/qvbq/JmWtAKuZNzYzFuRqJ5UHc2M4zPH5bJyxp qKKMzTGDKM5uCi0IiE5HouQpb33naR85FmbG9tHF61PAEmgd6EPDLQXnNkN0thVsrb 7tnS5k0et7b+Qh0kTui1r5K3doVyMP6o1pjBp5PvJTV12azppWlUpD0zfl2bLlSZkI SizxKDIue6jvw== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (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 5A4D437814A4; Wed, 1 May 2024 05:40:14 +0000 (UTC) Message-ID: Date: Wed, 1 May 2024 10:40:47 +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, Jaroslav Kysela , Takashi Iwai , Jiri Kosina , Benjamin Tissoires , Sean Christopherson , Paolo Bonzini , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Andrew Morton , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org Subject: Re: [PATCH v1 00/10] Define _GNU_SOURCE for sources using To: Mark Brown , Edward Liaw References: <20240430235057.1351993-1-edliaw@google.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks for the fixes. On 5/1/24 6:59 AM, Mark Brown wrote: > On Tue, Apr 30, 2024 at 11:50:09PM +0000, 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. > > This seems like something that should be handled centrally rather than > having to go round and audit the users every time some update is made. The easiest way I could think of is to add -D_GNU_SOURCE to KHDR_HEADERS definition in tools/testing/selftests/Makefile. It wouldn't be obvious from KHDR_HEADERS name that there could be other flags in it as well though. -- BR, Muhammad Usama Anjum