Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp90934lqo; Thu, 9 May 2024 13:37:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUu9mMCpBqXNqBSHfzKJ0FeD+K8+NXDbizJfMNQ1w9BbmCQpURwrTGPKBtuza9bSN2z3HqGCZTLm+N77IgWr3cu02HMT1vGKSWLt671vA== X-Google-Smtp-Source: AGHT+IHyLdt/l5PmJSSK3dluQXBILRsfyj/aiXqFWYP0fdG6VK8+roP2S+u80dAz8kSFMQ77eTbb X-Received: by 2002:a50:d612:0:b0:572:d536:5d9a with SMTP id 4fb4d7f45d1cf-5734d5cf871mr627353a12.23.1715287056634; Thu, 09 May 2024 13:37:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715287056; cv=pass; d=google.com; s=arc-20160816; b=w1gH42FgYb+i2xx7ika//3vCWpM8X4vaVOa1geu3/uxJiB+M9OCpHpc6GPtMlXgINU u2V+AhJakhTn49b+qyZEdA+ZXBBRaGTEL8XvtmcTRxPouZrJ41Qk5ANYEnxA3SzV6NdD KTtoc8c/FVMt+7FHREjn/6PWBEYJAe6BTJBzVsZBJp0lq8lCszL9P/nV6snIyhK4c0ZZ 0nq313lDtU2Hk83g/8Ak6S+xuR/49k0u2heu1Nl7GG5yptKiKSDT+9TEjBtPMsek4oMR rVFSGYfd1Q9SfTb8sbxBVGOpbGpUUJQEJRzqDqWmPJKrY+lXlu3pnp3dPrkJn5MYWjye Fy5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4cz7srw0wchahj3BrBLgg5JQDw/zVyXOLP/W31mZ9gE=; fh=nf8BoaFCin3JzvjYfakWbCBln+wHJGXKQGbnCivm5/s=; b=wVEz2RtVg6b2YBly6I3WKKb9ts0qEMeJYn8s9N4+5Ot6WnLXapUyqKCmX9GbNb0L4B wFBH98+2pgEOGzGvDwol1ZA1LD6qdXzBp6CiG3/k1vjfD9VqhmrSG04C1Yxy+JsN4/Iy kF0YclkQSBpKSfGNidcEAhFBt4sYdloJV+dvM4aBcXZSMjOHLcxf7wvtKNrxq0SJ4xZw ThSyZG3EQB3CEobighJf2eDSGErU47wXo2sapQSJKQCPZyrqMICkNw+ukaNwVMCxGlRu tyYK1NgYrLPofJzlE+Zdg3HyxRwI/PHekUoyqcLUYpASHGI1x+6uOlWY5F3HPJ9bOt/5 mIzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIhFWTXo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c378e4dsi1163924a12.671.2024.05.09.13.37.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:37:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIhFWTXo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 78B051F257BC for ; Thu, 9 May 2024 20:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF08A7FBBE; Thu, 9 May 2024 20:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fIhFWTXo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AC47C29AF; Thu, 9 May 2024 20:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715286683; cv=none; b=MxfK+HHZExRviTnS776143pl/fQuXzpFfRB1DTbA1SnNXBNI9mn3aQfIbPI4IYSNB9w4rw9xzaZCjRkKctJQRKpuDsP2/rTijmU2FMkcjfSoU7KxqLUC0JyP+dS9y1uHQebOTsXazlE87ZWmzPE0ZfMM6Emass15cQhWO0J2hgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715286683; c=relaxed/simple; bh=3hRwl2K12SkRKNM78wLsl/4te3kJ4BT9nZoF6sCbxbA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Y6ORVS9/MHH8gFbRDYwZJhLkNKqr4JFJxkH3AUoj/kOCYYaeKjIfN4DoLs0hiYYB0PB6o8mTYUvLL4WU5l/kc4AFBDplL53pYWIbh7vOyD1Qfrs0/9Jgyk7g0RaRAs3k2tTyroZFVLLfc1v7dFAPKndPczpRGUSojeAyZTH37mA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fIhFWTXo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BEF6C116B1; Thu, 9 May 2024 20:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715286683; bh=3hRwl2K12SkRKNM78wLsl/4te3kJ4BT9nZoF6sCbxbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fIhFWTXoUfrZEXYXnNpjyqAaUa4FKNKp1liB8UAZMze9KVv4hdAFmJylc4iA2ekx7 0fhwWAgIWjmCNyvHeQ0baHNbtDX7ycaHfa2SXUNVmD1OT3lznGSH7W9ZOMYVq8XzPS XNdetjkAICbPLl6ZcBlFpBrF6uOo19eNlFEH04hmul98ViHyviLWxshHNPkuB4YW8R j/XqzRH4eUz9DNnhN6j1c2zTJ4wOzQvR5+5d/39yVSA5AWK7LBuN0WnPSyQoM+Na7F +byhIpw32XvdJTGUefGzhSRK/x2pK5XgOnr0McvVxwaDjfNk0mDdQZSj4xrD1fIuDV XVepSil5D0/gg== From: SeongJae Park To: Edward Liaw Cc: SeongJae Park , shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , 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, damon@lists.linux.dev, linux-mm@kvack.org, mathieu.desnoyers@efficios.com Subject: Re: [PATCH v3 13/68] selftests/damon: Drop define _GNU_SOURCE Date: Thu, 9 May 2024 13:31:13 -0700 Message-Id: <20240509203113.63537-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240509200022.253089-14-edliaw@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Edward, On Thu, 9 May 2024 19:58:05 +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") I show Mathieu's comment on this[1]. I have no strong opinion on this, but if you conclude to remove or change this line, please apply same change to this patch. [1] https://lore.kernel.org/638a7831-493c-4917-9b22-5aa663e9ee84@efficios.com > Signed-off-by: Edward Liaw I also added trivial comments that coming from my personal and humble preferrence below. Other than the above and the below comments, Reviewed-by: SeongJae Park > --- > tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c | 3 --- > .../damon/debugfs_target_ids_read_before_terminate_race.c | 2 -- > 2 files changed, 5 deletions(-) > > diff --git a/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c b/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c > index 0cc2eef7d142..7a17a03d555c 100644 > --- a/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c > +++ b/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c > @@ -2,9 +2,6 @@ > /* > * Author: SeongJae Park > */ > - > -#define _GNU_SOURCE > - > #include I'd prefer having one empty line between the comment and includes. > #include > #include > diff --git a/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c b/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c > index b06f52a8ce2d..4aeac55ac93e 100644 > --- a/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c > +++ b/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c > @@ -2,8 +2,6 @@ > /* > * Author: SeongJae Park > */ > -#define _GNU_SOURCE > - > #include Ditto. And I realize I also forgot adding one empty line before the above #define line. That's why I'm saying this is just a trivial comment :) > #include > #include > -- > 2.45.0.118.g7fe29c98d7-goog Thanks, SJ