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: 13660693 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4220DC10F1A for ; Fri, 10 May 2024 00:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=c7tcZ9GDCq+5Hzwow5bAljL7D8NUH98ja2n29VAauqo=; b=ZgHuMRMfPqd4PLP5p8Px816cBk IPrdHuB+Z1PFx4LF/naDfy7qoO0gDrg6kw4YWOMcTma5I6icg6g38TNSOFJeESJSOql0htquME3Px +8Tl9qNjqwVlSwaS9LaOPi+0bVFyMIHYoBXCTc2+83h2DYEuI3b2hvQ28YRmig0ihqOS8dGnU2zJN G/R9KZcGyUKYIBNMGZDLz8HKOwE5+xXOs1KaD6DS+KIdrw0eoBATqE/F6s7IInghfvqMWxLYaNrGk rFbhG8MjC8ywEF10svpu1EEivplFMQhHf98lIAX2Afce2BW6GlldSqYDNZ+kmjXAsLtZpyd61XTn9 lV4QmV9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s5Dpo-00000003N0F-3zE2; Fri, 10 May 2024 00:10:01 +0000 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s5DpP-00000003Mdb-225e for linux-riscv@lists.infradead.org; Fri, 10 May 2024 00:09:45 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-61bed763956so25454747b3.3 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=lists.infradead.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=cXU7++VXWAjZSUBQt4v/VgNKOIa8uVffdQR1FNPA1jfX7WvkZPWHqr7Fe5MCCo/u1R IlGMCMKyuVUf2r88U4+4WKwwmY95gCqmq5MsxunY0yF0nioi2Mh2ak/n9GWju1mz1kT5 GC0N+gss7Uphn73pl3Vevpz4GWkdEp6aoGQcoKlqe+5mMjdGSZ9ZkAIk2FU6l3P9Hnk0 gKod5fU9tv5Yz3HL55NbmmO19A+MG/dwgv844OZEUdfdIa22rxfTeo6esJxdL2pA9PHD 4bo2z5lVaVefMwAVRolWquoBDJ9M9lNh4LTLEY9i1MErfjk1bKOdX/OTECqd6CADpipd F3Kw== 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=OXWfVtwC1woR3iuEZswajKa1FA9a4xwXc4bdPH4zxPqWqYHOcc2a45vb9Yj2mzKVv7 JQz3V/U91nP8pgdzs5+KYEZ/AThuwNRIT0J68gZ9VIkXNxUCGMadiJCCzSFKNzMQej5G aSi0x9+Xc86rRjnfjFGLdpHXADj8iFrjKgywTb0Ub6MGN5upWMTUYuoRM+Px6bJN5sCW 2SXM7zB8UgNNOXXCufKrpEp6p1Bcbgf/EZnw4I+JbRkngvVa1DyydiXvpcvg/PLEWD/p XHOk765x1XJO3O6FNxxpq6/YPg9fSyrconZ/W0v2tXrEfoZXu0XUYs2yXqpnAsKnpNlU JYDw== X-Forwarded-Encrypted: i=1; AJvYcCXH6XsNgwmigIkiCiehU8n0J9cL79Vsq1eMKdidjFmlszSnCmEtGrDx0kdA2CNawv4rZNtl2RpWgIkvKb5NxJ1OdbF00hbD+P35DHeHvx0O X-Gm-Message-State: AOJu0YxyGAf0T+pckb45yTuJdR1yVfNAYvqIImBZX6seafbQeF45WqWI UVZw01lcPxAEXHsdRkbLqCV0V2RI/esEV8BXvz/qd7CNSSUbtmEm2R8z7UotwqwFML32dF7YNPa K6w== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_170935_842755_203387C2 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org _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