From patchwork Wed May 22 00:56:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13669949 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 78DA7C25B7A for ; Wed, 22 May 2024 01:00:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2ECB6B0089; Tue, 21 May 2024 21:00:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDDE56B008A; Tue, 21 May 2024 21:00:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA60A6B008C; Tue, 21 May 2024 21:00:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id ABA696B0089 for ; Tue, 21 May 2024 21:00:03 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 31092C1035 for ; Wed, 22 May 2024 01:00:03 +0000 (UTC) X-FDA: 82144225086.16.195642B Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf14.hostedemail.com (Postfix) with ESMTP id 59B4110000E for ; Wed, 22 May 2024 01:00:01 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=rsRntwyx; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf14.hostedemail.com: domain of 3j0NNZgYKCIQmltqi4owwotm.kwutqv25-uus3iks.wzo@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3j0NNZgYKCIQmltqi4owwotm.kwutqv25-uus3iks.wzo@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716339601; 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=Fu2STs6PZpOamDjJKGMtZZrD18Ex35OZP78N3HJKaqA=; b=4KcjIhy3XJyDpQY9XPlcKYY2Cx0cZhf3m0JQFxh7fQODRfFsf+4hBqkmLnDc6ji37ghv12 86aviTP3BuOcrFJzVHB5lxMczQ4Y9NJuAq/wqzn1lA8GX3dxV7k6eJtlEtZrm3GTVG366/ JOCBxqqbDmekmwEBS8WCwViZ96LVLVM= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=rsRntwyx; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf14.hostedemail.com: domain of 3j0NNZgYKCIQmltqi4owwotm.kwutqv25-uus3iks.wzo@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3j0NNZgYKCIQmltqi4owwotm.kwutqv25-uus3iks.wzo@flex--edliaw.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716339601; a=rsa-sha256; cv=none; b=LguJkPhVU269mBUizx1axOLxlO2cK5VGFLTOj5XqVGDe6KglAVFK49UNKB2yS8CUu+DtLe efRzvP1x0005i8seXH39uh9XDYHr0bN/V5CcBOIPOn9FjCfe8BHaVua+swkp87daA+yJX/ /iEMa32304y3+YyQBHzYUKtsbO5QcjE= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ee2f06e652so141373085ad.1 for ; Tue, 21 May 2024 18:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339600; x=1716944400; 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=Fu2STs6PZpOamDjJKGMtZZrD18Ex35OZP78N3HJKaqA=; b=rsRntwyxqlgm0FhcXNbexNQoH7w+U/GBgF0aJgzzuRki+gvzY0jcQ9e57cOFKJy29X TNmmsibSyCQqvkaxpn5wR6e5r9c1BNmjtebeHtJfpEG6apaJrx8QlXVolW4QsWVBgtu8 H6kk7SQN1DxfQMzyfXVaZER8ytDhGRR5/mdVESmWvAzfCBSpMy21odzdUJxKxqESXo4f 9xATBppEnrXGvXAFGQOBX3PA4tt5qdUrR8DqnPF0AgGa4B7LMhwhBoUlsNC5JfjgZR5b oZBl1l7dEbcZexKAxNmEd1Q0EcLY1VVatNcC8bNGl2tED3KL9c/1XZ6kiJF7tWMA/GdZ pTNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339600; x=1716944400; 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=Fu2STs6PZpOamDjJKGMtZZrD18Ex35OZP78N3HJKaqA=; b=H3PPH7lSBZhA57Qetynn33ikdV37feWQhcBva9WTOMHLhyRLaHjV7l/l/3ynarZiTS hgQFxkJcKCZz6id3L2f2lsBtoA9/Vn754VSy+74dmZ5W5VGtEaAYGClg9y6veSM+rMzT DZU68BRiaY/ywy6yWn4G7otYsW6vWNIMJVSPv+lPEz7zEVvyLweeEc3QxMyi4T4uEdnK HHXP+24LUlQlJjAEmJjsbaADGgj6DTHJZEC//qhH9FTZMKRnLxmhN7tDx6pNqk4DCx4/ NuBq0FuFuCCjW4jDVI5rcpWfJ7RuG6Th+alT1CqxXT8A5lkHbBWCgs7bWkgDLL1ZCrAR 3kpQ== X-Forwarded-Encrypted: i=1; AJvYcCUJ0wBVlnY18hFdnfnUGDjp4zRmha4mYizSuMwlyRlp7GLGPeb79WzRoGDwomTQQzyn2/VeURs2qKYBNCFAiyg+BgQ= X-Gm-Message-State: AOJu0YwPNXnKITkfMn0DUHbChKcYZzW2YVOtrfX/2LGg7C17V/xx7ep2 ZmkE4PyEbWyBoZimcv6Q6Gc6YZ++lpQLuC0il/SDHh4iTZvXsFBKmvZbvY6Wzu2ZUyga3NOEAvn D9g== X-Google-Smtp-Source: AGHT+IEFjdm+modzHl4cK4pfS9awweB7RmwScYsN5OqiRKiBdxiZrCIPpWs+/7sEWbnGOtixci5Pqw9llow= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:da87:b0:1f3:900:e7f0 with SMTP id d9443c01a7336-1f31c9cd3afmr111425ad.9.1716339599938; Tue, 21 May 2024 17:59:59 -0700 (PDT) Date: Wed, 22 May 2024 00:56:55 +0000 In-Reply-To: <20240522005913.3540131-1-edliaw@google.com> Mime-Version: 1.0 References: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-10-edliaw@google.com> Subject: [PATCH v5 09/68] 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-Rspamd-Queue-Id: 59B4110000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GViGGDwYFLyG2CVJmZpDmPjng8WMTjzeoIXWpU44YOQ3i7d7e8EabcEwW/HkePlJH4mI06P529Me0xjimR78gvVaZw1aMDcZFzSfxcUdJRP2Uyj5vkvcc9IjmxE0APreaNJkjJ/e9xjW7ZqxQJFRFJHwNRUd0LVCciQAdp/1NHMtek3vLR4sbbyqfj7w0n39XaNRkxLkah/726UmJg7B/6XmAPCqzytwoy/Q3Q3Vb3b3CSkclFtBcGsQZBxyogCCW6gDUVwFNwa9vFuEE2TAHiTakafJ1f3UUOaVqYXrd9SnEHXpJx8jQZbbGQrqZkRExVJxxnHUlPH39rcKESpbNazuLui+AxGpSNBniMNSfvTTxAGX8fTfngqCy7/gpCtgbK93Rf1OQ7M5oAiXJ9/5L8NUaWPLWYVSW01FB15dOVgzHUCk8L+Eob6OV2KNZtqveIHSkNOMb2Ugwib1ulzHou4URXyZYgaxdea2AaHM7onu/1YGuonkXCmFwMfe+lBkD+Wts22zRUGS3MaD0S6zKC2pOofOuFW/lDDGjOP85HdPtlhnf/sxPCsSmUgBrPblyv9VmYI86Zvx+9T1viLTTW23VotDaiuuCW4INO3qQhUH1Sf+qCuOvKpvJDhY6Y0ruJKQHdZp/sm6xmx3g2CXcoSlqcvMKKlMMj3Tset3lFT+y5y/mz55/0MFvLPNSp7dMy55C7d3fwoGjSHQZ0fSDr62Kb8552Njtgoer 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