From patchwork Fri May 10 00:06:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 591F6C25B74 for ; Fri, 10 May 2024 00:09:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CFAEC6B0092; Thu, 9 May 2024 20:09:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CAB856B0093; Thu, 9 May 2024 20:09:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B24336B0095; Thu, 9 May 2024 20:09:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 927956B0092 for ; Thu, 9 May 2024 20:09:34 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D3BB21216CF for ; Fri, 10 May 2024 00:09:33 +0000 (UTC) X-FDA: 82100552226.11.516575F Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf21.hostedemail.com (Postfix) with ESMTP id 0CB3C1C0004 for ; Fri, 10 May 2024 00:09:31 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=sWHxcRFs; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf21.hostedemail.com: domain of 3u2U9ZgYKCLQYXfcUqaiiafY.Wigfchor-ggepUWe.ila@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3u2U9ZgYKCLQYXfcUqaiiafY.Wigfchor-ggepUWe.ila@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715299772; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ryQJTviHp0IGCXbDhH7pUWkG12d3AaS6WDLra+PaznQ=; b=ZFKjRyJmGmvXR6aVPbXAqviwLNqIwYQzkjTXQHGsV58h2Ot/9Yp6v4RKmWElou8CC6lId6 22IyErD6m+8QGcECiKVqjx3v5B2cpTyyI6GibE2cTCJ1BNgKetzRnGeEGl1BV35qmRQxgW EK2DaNgItALmWRjwgICtTTBAG9gaWNg= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=sWHxcRFs; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf21.hostedemail.com: domain of 3u2U9ZgYKCLQYXfcUqaiiafY.Wigfchor-ggepUWe.ila@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3u2U9ZgYKCLQYXfcUqaiiafY.Wigfchor-ggepUWe.ila@flex--edliaw.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715299772; a=rsa-sha256; cv=none; b=Zmb/GXVM/ag7BP7c0+LDoCZq+GwxLHmWPIrAtk/GgXxaqyDjR93LVBbbsAK9sI1jul9Zb+ oQmrEbmbLpUGx0IZjHY/G4rNyCskqfGbarEX2VH+sU3W6vwoHKrJAyUwrWeUY5sAriZm9D Yz2IxuuS4jL5Sro3CALxosUa5RZBacI= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-61be4b79115so26548367b3.1 for ; Thu, 09 May 2024 17:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299771; x=1715904571; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ryQJTviHp0IGCXbDhH7pUWkG12d3AaS6WDLra+PaznQ=; b=sWHxcRFs7wSiHOBNc5sORwOgXXBbPYhWQoA+MAVqIBC9s6xti5pOhOLXw3v7VQ+BpF z4/4QgnjsWBVYt+MycIx/AVcsTI1+0IL88FIKbddfqjDi8KINLOheoV8bcs0mwncwwUR L5+G0EuJUnk06nKaAH1cIMux6sUavUq968mM1Z6xV86Qs3SWh5cRY+TBKDbVzlxAxqqG 2w70nVItbjQ0CjY0kPw4KBx0SfB/dml7Q6mNxrtNHAPqyD8t3nyqdE7swaG7xQZmp/E7 +ioYB2Y9888oHsuMvm0m83dEkEiXt2gZo+Ve5YdE07ztsNxx1nD5ii3Egf2jMFeknKdr xiuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299771; x=1715904571; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ryQJTviHp0IGCXbDhH7pUWkG12d3AaS6WDLra+PaznQ=; b=qiohR4c++qZoBq1FBcMUATHUaqHGeuTQz2/qN0JkTIXIkZv8We40Ekw7MGZXMwkX3F HrQyfwHNMylPPYBI6iFlOYFFpM8Ypf6NMmE8KPdta//8T4cqvwL1WbhWg7G9DY74MWzw DjjIXbjkhqy0N96vf/Qmu7l2g2aX1CRAJ/9vODSZCpwzAuE0CsPLO5JBDwdNrpMd2pDS S+QuIRH5zYP8FuN5DZbebdjhMtoGqlClViJeEGZ332E7l+cpUMJMAAtGSN0UssYG8ywS 7FE+6QUFA3PInolN6zyk9beEO4PREZ3t2VdxK6X5e8zVqylWuGirDvUY6aoqJPWKtwmO hlgA== X-Forwarded-Encrypted: i=1; AJvYcCWiBWOZ0czD+A/wHVPn0shYLRquLGUpl3+6XY+nN+y1HV6LR/OIsMEk5D2ZLIYBCgckJc9hRJ177FJ+5Jyl0zAtnwc= X-Gm-Message-State: AOJu0YxDOwnEHPLjG3dpQ7GAtgLdt7GBZYyjx7rBq0hhHhYNOiH1k5qP f+1aBZizwQS8cmafeITbX+pVmn2jsyVVN+Qs75XQewLXHCh18zv2dzeChuTt24VNHXKrUzr1b8o +Iw== X-Google-Smtp-Source: AGHT+IF91iKdotUjwmFTJdv3hHy+ZWcgNpEXa3QGcsFOHdNTuSebKSYhR/TL6dX2vV5PjHVT+dvJb7v+gsc= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:6c87:b0:61b:e15c:2b84 with SMTP id 00721157ae682-622afff942fmr3115277b3.6.1715299771144; Thu, 09 May 2024 17:09:31 -0700 (PDT) Date: Fri, 10 May 2024 00:06:25 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> Mime-Version: 1.0 References: <20240510000842.410729-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510000842.410729-9-edliaw@google.com> Subject: [PATCH v4 08/66] selftests/cgroup: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " , " =?utf-8?q?G?= =?utf-8?q?=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 , Tejun Heo , Zefan Li , Johannes Weiner , Muchun Song , Michal Hocko , Roman Gushchin , Shakeel Butt , Yosry Ahmed , Nhat Pham , Chengming Zhou Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org X-Stat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W/BkmUxLzG1ntySojhMgd MXdsGSxM 6i4sN8+dROYqprZEB02Ufb9s4YzQi3qyFyeZ9W92mNrxdbqbHH9t+IrTxRKOuOnOmVmUm1X4TDeYk82AUVKL+QHNqI3s7iRpm3Q0SgtY/mtXCV2Gtp00lelCwo1xV5gTH13fhM2Bp2/EbSIc3r+snRrNZn6p0Y7+KOnaoFF6nLtoIAzKjBVAGlcgMAsoj5lxdKFPXIy74nXy9qjrgYGlZyDErYbp+4Lbq4RI7ckUcOH2pcEJUxkciWgb6HnU8Xc1s9HR7EV42AX7oj7/6IXh//D61K/v7beV4aRpNmPn6vOLIjNeLFc9j+vEw6LshqeyN9eGAp/G6Bz7RCI8uBE7KSWAsam3shdJfyQsoKhPgBU4eqN2mX3fIM7tswgOdkt03lC433nOAOsP+3PIIs5SwW/FU34jeuefSh8MYyu3azfZ1laa8VIYhIdwFFHqHAGbg9Qxm2Lo990484dgMqV9zp5tE1paRIgoGPWX1/50CcIkHzZsGu6ynHKltZSLdhGUWaexvBw0Af8jgamzly7UodCOFCiL/omEoa+OzoDU+YIrnWQskCDKJrL2Hz5N96RY+yXuzEHFr92Gt876zQAccdM9y+4WFGMx2LI3EFqvD7JeZ98JgF/pYXJZFM+J06CQc598YkSEiJwVcQtllpwkIX6uVuQ3I31C7CqNdCQ3DxMVQfVmFWRxpESKlSY9uI773q6zXNrUwbtmt9/aMQMoBZEN9Og== X-Bogosity: Ham, tests=bogofilter, spamicity=0.257657, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/cgroup/cgroup_util.c | 3 --- tools/testing/selftests/cgroup/test_core.c | 2 -- tools/testing/selftests/cgroup/test_cpu.c | 2 -- tools/testing/selftests/cgroup/test_hugetlb_memcg.c | 2 -- tools/testing/selftests/cgroup/test_kmem.c | 2 -- tools/testing/selftests/cgroup/test_memcontrol.c | 2 -- tools/testing/selftests/cgroup/test_zswap.c | 2 -- 7 files changed, 15 deletions(-) diff --git a/tools/testing/selftests/cgroup/cgroup_util.c b/tools/testing/selftests/cgroup/cgroup_util.c index 432db923bced..ce16a50ecff8 100644 --- a/tools/testing/selftests/cgroup/cgroup_util.c +++ b/tools/testing/selftests/cgroup/cgroup_util.c @@ -1,7 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index a5672a91d273..de8baad46022 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/cgroup/test_cpu.c b/tools/testing/selftests/cgroup/test_cpu.c index dad2ed82f3ef..5a4a314f6af7 100644 --- a/tools/testing/selftests/cgroup/test_cpu.c +++ b/tools/testing/selftests/cgroup/test_cpu.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/cgroup/test_hugetlb_memcg.c b/tools/testing/selftests/cgroup/test_hugetlb_memcg.c index 856f9508ea56..80d05d50a42d 100644 --- a/tools/testing/selftests/cgroup/test_hugetlb_memcg.c +++ b/tools/testing/selftests/cgroup/test_hugetlb_memcg.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_kmem.c b/tools/testing/selftests/cgroup/test_kmem.c index 96693d8772be..2e453ac50c0d 100644 --- a/tools/testing/selftests/cgroup/test_kmem.c +++ b/tools/testing/selftests/cgroup/test_kmem.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c index 41ae8047b889..c871630d62a3 100644 --- a/tools/testing/selftests/cgroup/test_memcontrol.c +++ b/tools/testing/selftests/cgroup/test_memcontrol.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_zswap.c b/tools/testing/selftests/cgroup/test_zswap.c index 190096017f80..cfaa94e0a175 100644 --- a/tools/testing/selftests/cgroup/test_zswap.c +++ b/tools/testing/selftests/cgroup/test_zswap.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include