Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1829556lqo; Sun, 12 May 2024 22:12:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvzKehhSMeUQlo/jeLu0W1nbk8oyXh2len8fauGvuYaDS9yIrLJ2qW4pP71zde+GnHmXBAo9HXa5Bnwh1LlvnEmECqjJGjYRn2ibSBiw== X-Google-Smtp-Source: AGHT+IFRO3dt4S7AS1IwN+0SrFZE+AYmXMWXML//sWJ7WF+XobEVwi7EbAb3HvS5TNrP0BpezRhu X-Received: by 2002:a05:620a:341:b0:792:b70a:2224 with SMTP id af79cd13be357-792c75f4b4emr977593985a.60.1715577123725; Sun, 12 May 2024 22:12:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715577123; cv=pass; d=google.com; s=arc-20160816; b=KnQw8TnQ4P6PCd8jF33L92boMRQnqrGDzRbPEwtt1RAJ8lI37CvanTsBCHCl9VL74R hlMgpZg2PDD+4CNuz1fwL/r32qxBMo/r8NHxsx/QDS4O5T6JK7S7lAKC7VPtir9ytabO PcqORLf1bhhMDvLmuaAyRY7aS/swfXvluDhJ8RtHwKqUZAAAiQ6tVuRiMYcuV2o+6hC1 UkL4ybrq8qJKSk2jN709Bv/qb+9cBx43wYOl2amf2DPvadIQpR6wYguztFTOkVvwvOs2 BExjAnge7CYXEMhdBm/XAYBQ+mQAPDo8QgrC8iV5qqOljRo1sexV5O1UQIFFOLbyoKdj GQ+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NzaTA4RcapZkISmaHLv46iIYK7VaukIA9ZguF6MFZZA=; fh=OdVO9NbEhdoCEdSKgprTs/bFG3zwvvQKZWRPJUmN/q8=; b=k7fSzqq2NhAFG/2JUzxOVVrRLAauWBUo60GPhZoH5CTTzMQ6xCsJf8+0jZDf22aNfz 8uM7OQr1fVCNGoIHt6zQKyS7yZN2gozmcsO9bB99d0E5uOYN/dBx5zqcBHvkmPan1FVi XXFA6Ua2ONFWmIwj+2uQfB2htTd35LF9zKeep8Sx1HyVaiImOwwlOhDV1EMXOH4VELFJ asoWHMiuTQgrcRnU9TTNs2waetdbDaOr+/Cey9mlAi/CDvOhKzHZbcsZWWlGCw5chAgS T9GyfIlsTFoxWPKAgGDGDNzp0K7uM3LkDCbdHdFJ6fhK0sI2CNhLA7Be2zZpWW5LfdF9 Vo/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=hw3En7ij; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-177159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177159-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d15fsi870308385a.717.2024.05.12.22.12.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 22:12:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177159-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=@digikod.net header.s=20191114 header.b=hw3En7ij; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-177159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177159-linux.lists.archive=gmail.com@vger.kernel.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 735A71C20D35 for ; Mon, 13 May 2024 05:12:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E863146004; Mon, 13 May 2024 05:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="hw3En7ij" Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [84.16.66.175]) (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 8DE25146008 for ; Mon, 13 May 2024 05:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715577109; cv=none; b=a7zYRpQxyZur0EOd8j5lWHC7Fy669UrFh7b7gnWUOChgH4qnJ6/mRlzRp+2BRsPcTRQbsHViEhrWQqhVUveFuodTPQX0TYIgSyCFhfYdcASqKMTAAdc5LzjvOUOLYDtJcIdTdzs1Z7XyUFd5lOVhSWT7sXqwn9Fu1Zs20KuD5y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715577109; c=relaxed/simple; bh=KFDDDGcGm/oWMDzWP22M7FfCz2XpGYOkwlgc6byenZc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X8/11aHOFkNwC9QH7lOBw9xHjFjJjXJpaXjiBKefoh7MagcoNdexedsgBpbmxH1Bo4M/B/qKpvXXRlhOMlq4xaND3XjYWM+HBU349w6y71ue5lwyqpCmbbYuMCwG8j1Iw4xFsHoVVYXOhRVDqXSue+PI71BpM1uqbG+tUwQptZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=hw3En7ij; arc=none smtp.client-ip=84.16.66.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Vd6zD72sYzBRV; Mon, 13 May 2024 07:11:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1715577096; bh=NzaTA4RcapZkISmaHLv46iIYK7VaukIA9ZguF6MFZZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hw3En7ijFCwNJoThQiowXkrUxCT44rzwcTmIeGAxmMKpeUBmBD1BLh+85VHxhgwc7 JBbg/rqFfZCDo0dPtfgcvOHScY8qdox00AoYekCDtfXJcIcsUmdc+pInQOE27YE5Ni +P34v4BDOwCSyvCB1aryA/Skhpq3+1VxUbfjd74w= Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4Vd6z94yx1zHTv; Mon, 13 May 2024 07:11:33 +0200 (CEST) Date: Mon, 13 May 2024 07:11:31 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Edward Liaw Cc: shuah@kernel.org, =?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 , Muhammad Usama Anjum , Andrew Morton , 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, John Hubbard Subject: Re: [PATCH v3 27/68] selftests/landlock: Drop define _GNU_SOURCE Message-ID: <20240513.wo9coof8Dae4@digikod.net> References: <20240509200022.253089-1-edliaw@google.com> <20240509200022.253089-28-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240509200022.253089-28-edliaw@google.com> X-Infomaniak-Routing: alpha On Thu, May 09, 2024 at 07:58:19PM +0000, Edward Liaw wrote: > _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent > redefinition warnings. > > Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") > Reviewed-by: John Hubbard > Reviewed-by: Muhammad Usama Anjum > Signed-off-by: Edward Liaw Please only remove lines with _GNU_SOURCE, not the empty lines. I think it would be better to not change such style choice for other subsystems too. With this change for the Landlock selftests: Acked-by: Mickaël Salaün > --- > tools/testing/selftests/landlock/base_test.c | 2 -- > tools/testing/selftests/landlock/fs_test.c | 2 -- > tools/testing/selftests/landlock/net_test.c | 2 -- > tools/testing/selftests/landlock/ptrace_test.c | 2 -- > 4 files changed, 8 deletions(-) > > diff --git a/tools/testing/selftests/landlock/base_test.c b/tools/testing/selftests/landlock/base_test.c > index 3c1e9f35b531..c86e6f87b398 100644 > --- a/tools/testing/selftests/landlock/base_test.c > +++ b/tools/testing/selftests/landlock/base_test.c > @@ -5,8 +5,6 @@ > * Copyright © 2017-2020 Mickaël Salaün > * Copyright © 2019-2020 ANSSI > */ > - > -#define _GNU_SOURCE > #include > #include > #include > diff --git a/tools/testing/selftests/landlock/fs_test.c b/tools/testing/selftests/landlock/fs_test.c > index 6b5a9ff88c3d..eec0d9a44d50 100644 > --- a/tools/testing/selftests/landlock/fs_test.c > +++ b/tools/testing/selftests/landlock/fs_test.c > @@ -6,8 +6,6 @@ > * Copyright © 2020 ANSSI > * Copyright © 2020-2022 Microsoft Corporation > */ > - > -#define _GNU_SOURCE > #include > #include > #include > diff --git a/tools/testing/selftests/landlock/net_test.c b/tools/testing/selftests/landlock/net_test.c > index f21cfbbc3638..eed040adcbac 100644 > --- a/tools/testing/selftests/landlock/net_test.c > +++ b/tools/testing/selftests/landlock/net_test.c > @@ -5,8 +5,6 @@ > * Copyright © 2022-2023 Huawei Tech. Co., Ltd. > * Copyright © 2023 Microsoft Corporation > */ > - > -#define _GNU_SOURCE > #include > #include > #include > diff --git a/tools/testing/selftests/landlock/ptrace_test.c b/tools/testing/selftests/landlock/ptrace_test.c > index a19db4d0b3bd..c831e6d03b02 100644 > --- a/tools/testing/selftests/landlock/ptrace_test.c > +++ b/tools/testing/selftests/landlock/ptrace_test.c > @@ -5,8 +5,6 @@ > * Copyright © 2017-2020 Mickaël Salaün > * Copyright © 2019-2020 ANSSI > */ > - > -#define _GNU_SOURCE > #include > #include > #include > -- > 2.45.0.118.g7fe29c98d7-goog > >