From patchwork Thu May 9 19:58:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660242 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 E4809C10F1A for ; Thu, 9 May 2024 20:01:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 715396B0089; Thu, 9 May 2024 16:01:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C49B6B008A; Thu, 9 May 2024 16:01:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 565AB6B008C; Thu, 9 May 2024 16:01:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 34B046B0089 for ; Thu, 9 May 2024 16:01:23 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 950801C05C4 for ; Thu, 9 May 2024 20:01:21 +0000 (UTC) X-FDA: 82099926762.05.1BDF13B Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf21.hostedemail.com (Postfix) with ESMTP id D180E1C000D for ; Thu, 9 May 2024 20:01:18 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="B9/UisST"; spf=pass (imf21.hostedemail.com: domain of 3jSs9ZgYKCBIwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3jSs9ZgYKCBIwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715284878; 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=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; b=eFacQQ/glquUHZi2xtz7+3D5CZkBeeDiv6jh0IFSNZoWaYXIElKKrGOeiHMWZUSBXdSxXg 3TCb9GK1E7xbsr9G/7EaTBmspFrWuwcAfvgUGJQnSl9MoMSvdX3ZBCgj+l11uQn94mks7B Ixn2wQGSq7lKdL2eDiS0RpHHNv3qfns= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="B9/UisST"; spf=pass (imf21.hostedemail.com: domain of 3jSs9ZgYKCBIwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3jSs9ZgYKCBIwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284878; a=rsa-sha256; cv=none; b=RaG5Frh3STju/44SewtMnLwyX4YeBc/26Drwjm52zIoG3Z2paybXc93N8YwKsHSrgxA9/H TnmpGj0XyJSFFWgTSTMNlikoSBXNNlsCHpSzarIP5hFgxFuinVkN00EISFUhK01j2wU14i oxEc8rl9D5ZzuE2e+yVn720yJcE7b3o= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de59ff8af0bso1982513276.2 for ; Thu, 09 May 2024 13:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284878; x=1715889678; 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=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; b=B9/UisSTZO8XuG1H+F0mlMu2khuvKc7qt8gvhs0+2k4NZDPgcf/R1YIgKR/qw2lLCg NFmaD/GWT/9yrKrAnR7muU348Iovxu7y5QE6BiUtVXSQZRDmPo6dAPl/EtUL1ALe7pHT 6JTi1EU1S8lrY5e7NiiOex7Q3p2axsb5a32cQxsWcoSG1yUXIlmAtPjXGNByTO41HZo2 jfL7MA/ceaeDmrVp4UWcI7023zYEYA7WH0rfGY8V2rUSoJYGW4nC1i3PAkGFRmU42i+n v5phTn3ASr15BUmU+RVNWQIMWK/PTDY9yqzq1qRlsfBkteyVCVXARfWA9vZ4mHdTtQZR Jvqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284878; x=1715889678; 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=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; b=akplnt2xaSFGYGi4unQ7XOk1sW7/9H9zh39Nuc6H8fIzYeSaQ94xvRz5Ax+I7+YPDJ SPnEe/hPONxodUWMXzccTOxXFwENdWMWvD/SIh4l5HB3pxl4plllBoMTJ6uDCjPkzv6B QoFKJedFNIZ966b1oL4R94F9XJ4N7N5a6H5xRUetU37QX3HZvNYsWAeJxLs5E+XSan3R QC+HL1EV08MxHmF+fq/m6wfZT1NPvGU0z/apPLQiAd7XgGOiHYGeJEx2DnIIM6B1P1hp M4MdFiSSVJt/pJt2TrQcFDRC2Ja+9qd7g1UUzW6mHXJq+O7kXuf+m9npIMqBjQZQXjuq JLeg== X-Forwarded-Encrypted: i=1; AJvYcCVxO3waS8pt/sQHGDIQ11zRS5Xo0DF7+Dvbt3a2RmHvZza0piYrfeYDw28ufehNXBK+5ne7eThcVqPS4f+J0kRJY20= X-Gm-Message-State: AOJu0Yx9/HLSnmo4oKvaiQjA/H2sQRS3fkzWLUthUDera0DH5fP7ShIn cnDYmkFNrWd9GMihhm7ytDEHEVOkcvtC12DjOqAwoOjbm1OnS55TUvXd6UezmU7YuocHdzvuP6t ORg== X-Google-Smtp-Source: AGHT+IHpOYcnCKAgNxLWCv5PxWZfMXvL8C7Gz/+Il/03alKml+KTIw816t0RgfA9erd/ilyxF8Kqzz2DP5U= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a25:8d03:0:b0:de5:1ea2:fc75 with SMTP id 3f1490d57ef6-dee4f2deb83mr57084276.7.1715284877769; Thu, 09 May 2024 13:01:17 -0700 (PDT) Date: Thu, 9 May 2024 19:58:02 +0000 In-Reply-To: <20240509200022.253089-1-edliaw@google.com> Mime-Version: 1.0 References: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-11-edliaw@google.com> Subject: [PATCH v3 10/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 , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Yosry Ahmed , Nhat Pham , Chengming Zhou , Muhammad Usama Anjum , Andrew Morton , Edward Liaw Cc: 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, cgroups@vger.kernel.org, linux-mm@kvack.org X-Stat-Signature: 7ao6jd846rst9g6fhhpyarjkcuizhqtd X-Rspamd-Queue-Id: D180E1C000D X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1715284878-851057 X-HE-Meta: U2FsdGVkX19eFTr+r4r37prGx/5HA3Idn4nDdIeM+qFTd9ZFnV0aIb4kE/O6lhb2vk6lzRRSsxnMEMXhN31L6l++yhzIICgFaIaYe6vskS2skHILDOLnog0FPqqpHHczjlFGZbWyhffjb0JH9ON6dE/RO7lnsppSKcC/YIE/KjecD56ttjgZD03iP686oO+fbwaFm1db4mMoyzxbT5FkNLZqXp31CDwVN9JeVtgCNjcwQOTAikxZhUi2PITwR3+btdhw+Gd5Hs8lPx+zNM+sdhepMRNsiyN8Y8R5TrhKTpNQ3V4RwGsEcY4NM3WG3BgeTmn/soQmxzhNp02M6jjI5C6DtpA93ivH4DVtlHprPHlhwzcfW3Ti4RHYoBmGYmoHYWZOmDXocjeRyyTZg3WnPzVOu3Rtt889w/yIl1He1owFDyTBKHLmKExFx7d/KjBItU1V8kE+JT3ngRvJR0xfv+ZbC9n6kvEjJFBF8IzTk/mbuT+XWtS+p2or01ygBOqyDNQ6Z7UcgDvYHheEremtYR6frOIv1cOiWZTleQ4FLpEhZyz5qPiw36xmn8L4hlngo8ydCDCAbM02c/wgfFyvAkgNVP6iktHSO7BrrhqJOGA91Q5ASs5WTD2wOZljn5E05NunvV9zcXyxRa+HaKZEWFKSpB0zoM3XAiheCMMa8vQmJ2+KcSg14LoM/0+vIjBdjOCcFgPNcjroIWz4/Il7KaJmYVXrj2MSlrMD2OHdLaJ2KQcQ3Cb/thjNq4rn4luSSypyhV0xMi8NnrwOkoT5+NRT5R21I+h5j0BRLNzc72jsUvgG4p9OrKLF9+IJlRsxvhGm789GmfZeGeplQX5oX/XGsKt3SFpBqAKWtQhzt+nhp2U/Lv4uv3ilCqjN0nbXIXFAk+nCOWAK4dzq5EK8vGxDQvSmWpn8+GgWTNSWB2+igYD+dR0fIczlmSzI6wD29WMG/k53MaNvEcLRpUn +hT9eZ1H TlCdwHHPyNdFqY2ud2PXCPIOFCTNEnnc/A9mzjVD5XUJEDWYW8BQJYNgg8+h2l6Xyf2a4N3LQhiGvTG9M1OC+5TgcLu1bcegI7wgd3rYkFg3c6NfxdC5Xrfb+WzRTLwqDYJTOO6d5xXEjkBG8i9b6V8HLXk8JlW6/0XRJBN7JfvVZ6gyaccZK1IZXl/TdrDL014WJ+zuTPYHZGg+OXqhWTG3z6zkcqKxJ74JpTqgfQAyWJSPb7Xa3ytKURSoR20hDPOLbNAia4PhrNSo5PSmeRpSmFNIKdmhCIAcFSCW8NIKoj0z69sVqrAD7vkTUYUC1KgnBP3cxcUgXco5EyZpkF7N8HLcHMkk7IET4KVB0XyV2PmJ40yvFmrEYTdz1e0Wz9jYNzgLd3ubyw3a3SMfuz679CgVAVInGiXE//GxnoeeAlLDEASj3n/CVR6VMaetg0WtFSDWOHA3I0ZPeZaaAnpNO3QkcLm3jlVy/tx1OEbzFgx+xkmSunPqD3602PNtFs7+z0NvhlwMVIdsEFfIHAJvYpD7it8R+UXec6Yy0vDZhKKsC8z9zhCs98J1l96GEmhaCB6sLmGyGWRF2RcXEonyHywXhX7rAz2g6rRf2q/B5ceHRfM1ciwoaC4mV1hvEFJdqis4E1V8Kn+No6Bt8dheNJ1d7XbSPgFB1+T0PKY7r4pqx0YkAlV0oBM4pRuxNlrWu20Q5MBeKajbOQB8fF4JO8g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.055941, 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. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") 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 d13954256335..87512e91845e 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