From patchwork Thu May 9 19:58:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660241 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 0C9D4C25B10 for ; Thu, 9 May 2024 20:01:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7155A6B0083; Thu, 9 May 2024 16:01:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C4836B0088; Thu, 9 May 2024 16:01:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 565B26B0089; Thu, 9 May 2024 16:01:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 359096B0083 for ; Thu, 9 May 2024 16:01:17 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C031D40141 for ; Thu, 9 May 2024 20:01:16 +0000 (UTC) X-FDA: 82099926552.23.C3D88E3 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf06.hostedemail.com (Postfix) with ESMTP id 4CE7D180018 for ; Thu, 9 May 2024 20:01:13 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=0atoThe7; spf=pass (imf06.hostedemail.com: domain of 3hys9ZgYKCAwqpxum8s00sxq.o0yxuz69-yyw7mow.03s@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3hys9ZgYKCAwqpxum8s00sxq.o0yxuz69-yyw7mow.03s@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=1715284873; 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=5dDkrD0dZYNeak58b9GqqXeIHUFk691mZ1uMk+mW0Xo=; b=ikKQPdaK8736emBbdTFQQcEXXnvB5GQtf382z8siRXj38+KWf9/O51bWPKjWz1wjvFQDx+ 69EL7zPxDHhOWc/JAK5/fQZzX/3WwXt4h2Tv3V7sFTbIdinwM5X7SGgsxo3mo7p+6M0Hkr z+wgAihQ4EPxJnvBo4YyNhwqHnhMsgs= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=0atoThe7; spf=pass (imf06.hostedemail.com: domain of 3hys9ZgYKCAwqpxum8s00sxq.o0yxuz69-yyw7mow.03s@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3hys9ZgYKCAwqpxum8s00sxq.o0yxuz69-yyw7mow.03s@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284873; a=rsa-sha256; cv=none; b=77DCufnUAxLw67QoBgIdUEoHX/7vckgGMJNAN8Bwrk5qWhQoSqmNj6mxGVtbBIFDVL0Mq9 w0E8kB+8vOmniVmoWDnKc3kzm47w8eNxzDrMO8Rmu88hRg6HVHUAcTsFHWQsO01a1GOkrG Hy4uiWtLoPXU4Pf8bCfxVBABdGlUnuQ= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ec3c838579so11752855ad.1 for ; Thu, 09 May 2024 13:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284872; x=1715889672; 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=5dDkrD0dZYNeak58b9GqqXeIHUFk691mZ1uMk+mW0Xo=; b=0atoThe7fjBqNT1ePcC96iKId3avP2PW1vGBHgFce1scZwB8B1WBkuZi7An4Iutd5R dTTRHgV5OAje+vCBAS69SpoiLkdGFHHwKFXQQKYyNnUX/2HF2xNPBLy/CBldXf8MEJCu TyAadsEMEftHhIZ5ueA/bIbk0kV1X5YC/eDIE4uRDM8zehVvAqTLy1skN+ysfr4iRyZc fQxjiDcm1OwoXrwFl55anS+zsMVClgaT5RCXkxCwOYqXIogsNONeQ7J80A0Y7iXAtRQH JPQYfvt7zTCQ1j9bOtVfU6syBq3i1nx6NCsBSw1vLfu6xr1MXG0y4icSW/Xus8HyhyJ8 YcdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284872; x=1715889672; 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=5dDkrD0dZYNeak58b9GqqXeIHUFk691mZ1uMk+mW0Xo=; b=iqXKz7eVdUXx52Ng2ROtnd2Bp7yVHGfYrprJAieUdFNOXohV7BiR76jntZP+uLsDV7 TUyUMl3GzczC4PpvGKnQXk7EIwq2VFMzyN2IriROEuHVjGxsFoApBMrcXIz1ykxR+Zyp 58aAnJ4je7iVS4aLCRr4+HVnuDm9hb17ujqdHBjHPcdY9dpSj/q02bvSkAJ3xo0Vnii7 K9xQuE0e3LNqwm0hD23lb2VjOxPpnDZCnOL5uTBi7xiw1ajD+BsfwHPvJtarWldcuTKe l30QbACqg8Yy5Oxrejlx5BMHLNvrS5kNk273wqPwaQmanA2H9vSRbJYa4A1scRd6V0cn FPgQ== X-Forwarded-Encrypted: i=1; AJvYcCXcPANDbM6QZZ1sXtqxnFKY/ZVduEq4uQhitw2ctt/s58E3UsxL2cl5oAoVeYNd2+giJcTwdBWgRMU3DB5oywsDuBU= X-Gm-Message-State: AOJu0YzIrTkyyGX+V2D0m+Zoz3hgipXhmrShXzludZav/Ekax23sKLm3 snxpiV+i9omzTIfvZps9xiqNKGa0n8tdDGi3YPkFh+vAIuddi6GOfGyA5g7bZbstgKCPU9/g1l+ j2g== X-Google-Smtp-Source: AGHT+IGN4HNDJxeluOcEKuz7md9IZhJw8i2iBFbn3kCKVQqvAuS4nKMSdcwPm/QUnrOgNSxeyjub3Y+yA1A= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:d488:b0:1e4:7bf1:52b with SMTP id d9443c01a7336-1ef43d2df8bmr270375ad.7.1715284871880; Thu, 09 May 2024 13:01:11 -0700 (PDT) Date: Thu, 9 May 2024 19:58:00 +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-9-edliaw@google.com> Subject: [PATCH v3 08/68] selftests/cachestat: 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 , Nhat Pham , Johannes Weiner , Andrew Morton , Muhammad Usama Anjum , 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, John Hubbard , linux-mm@kvack.org X-Stat-Signature: 4igt4kii48byjqd6yjrecu14mejmuiwr X-Rspamd-Queue-Id: 4CE7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GTgqqbl2sFOJCbQpPgyJ8MumCckEHiutTOlcxZyYNe5rSMvTzaAdJaaAz0WvNNZvKODHwF3EBhDfYyaz0cs5B/crArptO5volLzM7cddQbtJ0S1E8Gppj/qtNrDwImc9TakRm8NkY8tcgHQVqnzc/lHm7FTUASSgdnNSrVZor6IwP2DsE9ayBxJnX2+RectVKx4uuNwRqfKde5qXVHS2mlsTReEhQK4Ck0IWPopD+tlTU6G4rXuGiGm0iWjwQDTmkikarn8fTCwwONugOfFj5lVIPE4JEXbmLqatm67hkCZauydN77ttuf3l4NeA5ADI30VVwQiZiyuRBHE7fGHPDaSWqMX3KbYzhSCjog9dA5KL80Cr46zAEiTEXyxNLAs7ADlSUcP1GGusOkt62SFhBzQstI9F0XoohCNxG8GInnnsN4Bcw11xABt9EPe4GNi0RJmEhewEbzFC/zWTfjXMtDMgHMualhF8Mv+cwTd1mHfnjjgo7kOdianAddIGJHQQ11cOrh9a3ZIg9F+1bPnoJyumbMTBC7Ydhdawa/LTB4utnghtHjtnu3wa3G0wmpsOASMeJAoi3/jcUChVqmKsOymTsvDU/Z3tUJTT235NYSR+5CXib/QXDxAoRztTGjnv8IRBtDhcKaGf7lj9jTHWzc3HGeeJssJbDkLmEg5SN7Y4JRwiAi9GkZQnGm2J89RG9lsxg2sxzaEs/AAfyc++OMy8TIF02ruacYSgidn0yHSsz9Zv/725AgRfiKg6WI9J9RvH20yFR75v9POck+aKmD4INDVGvAayw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.028389, 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") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/cachestat/test_cachestat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/cachestat/test_cachestat.c b/tools/testing/selftests/cachestat/test_cachestat.c index b171fd53b004..c1a6ce7b0912 100644 --- a/tools/testing/selftests/cachestat/test_cachestat.c +++ b/tools/testing/selftests/cachestat/test_cachestat.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include 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/Il7KaJmYVXrj2MSlrMD2OHdLaJ2KQcQ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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 From patchwork Thu May 9 19:58:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660243 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 BB525C10F1A for ; Thu, 9 May 2024 20:01:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A3916B008C; Thu, 9 May 2024 16:01:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 42DC86B0092; Thu, 9 May 2024 16:01:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 257EB6B0093; Thu, 9 May 2024 16:01:30 -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 056586B008C for ; Thu, 9 May 2024 16:01:29 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5702481695 for ; Thu, 9 May 2024 20:01:29 +0000 (UTC) X-FDA: 82099927098.03.C12A4BF Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf19.hostedemail.com (Postfix) with ESMTP id 5909B1A0020 for ; Thu, 9 May 2024 20:01:27 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=excA3GA3; spf=pass (imf19.hostedemail.com: domain of 3lis9ZgYKCBs54C91N7FF7C5.3FDC9ELO-DDBM13B.FI7@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3lis9ZgYKCBs54C91N7FF7C5.3FDC9ELO-DDBM13B.FI7@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=1715284887; 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=Od8ki9QAqD1fUhM/c9ehfUOTPfP0DcxD+whg8mbh4TU=; b=arp5exqX42J/CSr0GL/dLDMk4P1RTFPXHZgCpwShG1CPqJojXxYRqboekOxBsqL6N9islA A4PFGB/ezxKHYh8xwcjO0i4DB3/17c9BTVN097uoqMzZTMMcdAfYPklcW+BRooPGejOKHQ 5Rsxja199nLLjC/d61E4MOgHaQUnWlE= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=excA3GA3; spf=pass (imf19.hostedemail.com: domain of 3lis9ZgYKCBs54C91N7FF7C5.3FDC9ELO-DDBM13B.FI7@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3lis9ZgYKCBs54C91N7FF7C5.3FDC9ELO-DDBM13B.FI7@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284887; a=rsa-sha256; cv=none; b=LCC5neXtxYEb6Eg7ZQUxDlvBiFld/GWU2Opdw8wPHVO5lPdPK2zRndObEXg85CRD7ey+Ox aUWPsGdDvv29wXkomRzP55epwWTDlvr1bAK4dQz3Jj4VHmGaOFAckTNwgrx5Rh8GHXxPf2 hWnEAoY0i7U/9NxSHmYpI44Sv0ZNmx0= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ed941c63b3so11416155ad.3 for ; Thu, 09 May 2024 13:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284886; x=1715889686; 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=Od8ki9QAqD1fUhM/c9ehfUOTPfP0DcxD+whg8mbh4TU=; b=excA3GA3pJCWlEPYOv3UmrXqSFPexVpKG6XolHwM9UxPssUFecRI1RztG/czaH/kch j32qkaIHISPB+qN9NWqVeUBnL6IIelXKaWcuhAFjOqjqSN2JLBpciwMmmyDZ+eHCkLXd qm8D+GVDlkq37rioWEcDUh4h7O4ATSHeQblnA3pK9g6CoHTiwXfzjtuEhzwY+C+SIcSi R5rtC2vaxZPRoHbKxrU8fHUXr1PxBWojqDX/a7qe8NnVf0P8ZfuaZg7I/j3+j8tdTk0J yj8FU2bDO7px28Slv5btnNsDLG6J63dcOVZ4Dt+A2oyZMfyv8HQasYrNfAWqGJ5JHFgG xkvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284886; x=1715889686; 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=Od8ki9QAqD1fUhM/c9ehfUOTPfP0DcxD+whg8mbh4TU=; b=pTOs2sbganmVe3TjKVFvvqkvzP9Oaz7Dhu8fuXPK7Zj0wtqrcWNpIrn8JWvvucjS52 GWDBquOPASh5ZgebV7KWtEtVd132b6BElMuGGYThDoFnckb7yVBl0d+1JhJbSzA1CkDK 3bBsGL/tz7nje/4J2P40tLP1//nt5SbAOkJss5anLB/1M/e3wPO2XeGHmQDRTVqu2KTe hvxrT4uO08AUBixvjEEoiwoFplZRWS3BcyG3Qd5AtOFbno90VqBmbqPkaKv9WhUfD/w2 fz5tgOFuTh7T6jnKr6PatYQeQzMnmBbIYIRa7MZXT1m11w7vExsdBEMWIgbfhO8J5jvg UijQ== X-Forwarded-Encrypted: i=1; AJvYcCW50Aw7aymjtrWGVU4l348d/41I6tSYp8r9B7eWwdozyyZXagN+X8dtTVJgs7HoUD5QPgR8wYSkmg7UZMmfHJLPAao= X-Gm-Message-State: AOJu0YxQmKZeV7PP/G+HDdkU7931j2qKoEcWNhcb9gWQf+8dHU0SYyrx 2qujF+VcTK19Ns2m5/gOtFc+VvH+6gNB8PZpb1wGE2muNcV017+u/iFPwshl9smoiW4FZ7KYxV4 uJA== X-Google-Smtp-Source: AGHT+IF+9O8AdOrC0sfYwymi9nDgS8P3uCdoKz+tbRqRCiftF6S/rlAyRlPcJO8FmcCJmXEqc5hw6LgYks4= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:cecc:b0:1eb:62c6:98b0 with SMTP id d9443c01a7336-1ef44049854mr17265ad.11.1715284886040; Thu, 09 May 2024 13:01:26 -0700 (PDT) Date: Thu, 9 May 2024 19:58:05 +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-14-edliaw@google.com> Subject: [PATCH v3 13/68] selftests/damon: 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 , SeongJae Park , Edward Liaw , Muhammad Usama Anjum , Andrew Morton 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, damon@lists.linux.dev, linux-mm@kvack.org X-Rspamd-Queue-Id: 5909B1A0020 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: psh7jejpek4y6fhi3ty177bwcp15q8ai X-HE-Tag: 1715284887-279735 X-HE-Meta: U2FsdGVkX1+7BaTqmFfYqr0pSpT1NkPwR4xO7mtiQd0zAEjLM8ENE/dOjykLVWVEe3tJPc3nd5g9zcGtFTA9XrkZLFcwmUp9/qhAjsEf4fmN+MMnzxuyD0swVweG3EZq9LmtsW/+n5vDvA0Oapn4RI5ebHe0LGAVMgNvyZ/h6AUs+/HrwDjOTaxcd+7lVlTlqtmbXrwrqsKd4JgFufoFoNzb+Kn9vnlIEGrV3wFSQGR+FS7CJEIswprK8Djhftsy22E3MxELXGclehdEwxCgGg8AxjAXXdxGUL5x0fQYpxecJLxa5pvSybWVE1ZiYHVAAIC2YwkGO4Ox9EbX92ryZ7tw5snKqUwYJVZcX9phaw5eonl3h1w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fxQZD4DNGsdaf+UsVgqVeKwisHeqbn/NCghmKsmhMlBKMJcPzpfb6CLxylbb0bLfIrxx8+S7XQw9WMckqCP53vgKQiVdv3XUet9UM5N1CVcZDZMdMl6aO4f4lACrkucTv70+sOcZm939GUOGyk/7KZK+EIETzL0LJz/8jlF820TeQyB+r7PgoJhRAJCPF1/2rsZ2AYyWhDUpBp3rGof/P+VmNLi4ELXsk9czF6pV5TUElLYPDjD1GQ3+pBfWg6QFvS9gkwPbzBSDlcEiKR7O8qe2V+Bquoh+RJmfX5bB8GHzRRM3SQdH22TmxK3zqcf9kfr3lJqYJ9gT X-Bogosity: Ham, tests=bogofilter, spamicity=0.097916, 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 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 #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 #include #include From patchwork Thu May 9 19:58:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660244 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 B7FB0C25B77 for ; Thu, 9 May 2024 20:01:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F36A6B0093; Thu, 9 May 2024 16:01:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 47CEA6B0095; Thu, 9 May 2024 16:01:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31BE76B0098; Thu, 9 May 2024 16:01:34 -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 0B79C6B0093 for ; Thu, 9 May 2024 16:01:34 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C5781A02D7 for ; Thu, 9 May 2024 20:01:33 +0000 (UTC) X-FDA: 82099927266.02.A32033B Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf03.hostedemail.com (Postfix) with ESMTP id DD44420021 for ; Thu, 9 May 2024 20:01:31 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=N1yqXA78; spf=pass (imf03.hostedemail.com: domain of 3mis9ZgYKCB898GD5RBJJBG9.7JHGDIPS-HHFQ57F.JMB@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3mis9ZgYKCB898GD5RBJJBG9.7JHGDIPS-HHFQ57F.JMB@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=1715284891; 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=SARWn1297sTaPTixNcZ2P/NfR3z6dYPtI+wY0CAAJVY=; b=6aBBRB637DudIdY3zGd2dh4YKje/6SfpkYGANjn+Yt6ClhM+LGWCO0wOhns7XY9R7Q2mwP DF5XbFA8GBaR1NsWEoGbAngUErK5Tnlg8CSZCGI4XEUU9NO3sOzJ4S+ak0PrlMwbyeSokr 6poq45647bhO8N4RE/pSbArMxpJFU+A= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=N1yqXA78; spf=pass (imf03.hostedemail.com: domain of 3mis9ZgYKCB898GD5RBJJBG9.7JHGDIPS-HHFQ57F.JMB@flex--edliaw.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=3mis9ZgYKCB898GD5RBJJBG9.7JHGDIPS-HHFQ57F.JMB@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284891; a=rsa-sha256; cv=none; b=RwQ4iMR3pl0Ms4f4oB32D6/Kjz2bJBZhVVnroy4UWoPi2N9czrJxZweZOd3qc7FY2eC9Wb I2oaFeDUDW8a2xdNF/VkFV4pj71Xl15uO2DLqlYbWhcOktd4myywF9uN88NXUNHqupJPMs 1PXDUjvP4sePnHcFnB9ryZ5rw/Bogic= Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ed3b77d45aso12664335ad.0 for ; Thu, 09 May 2024 13:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284891; x=1715889691; 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=SARWn1297sTaPTixNcZ2P/NfR3z6dYPtI+wY0CAAJVY=; b=N1yqXA782peA4Zxtk2cI+ivufQO7tYNLF4DM6cRkScA7TgpbTY9gmtiRIN0zqKdFUw S7C2xNH3ouqj1cQl4XSBOvMTylI4jC+jdud1LLsCHCdGj2BgU6O4d+DXyE+hnwLdUcjP XixXdCe/YE+zzvdHrfa2yHu9cLxolxWHALdzIst+liF92rlOps3dwH+lx8OJ0S5vdS+I WRCY8TPvo94Jnxll55GNFACBAnqSXG+QDzwrjyMNIIMDEsh7kaOqulGg1l8JP6NZljt6 7swGEPDuCpggfn+yIvFfDvWQCVn7uZhj0EmahH1/0X+JeddAV7iFSsUwiPB+sJhm5k5A nozQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284891; x=1715889691; 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=SARWn1297sTaPTixNcZ2P/NfR3z6dYPtI+wY0CAAJVY=; b=bRsllaYKpF+k58TAA+mQSU886AL9ZnRAvZElZF3vFJ1BxCXVKqVEbKqzyNJWYB05S9 a1aArwK/zuNESajjzUI62wcstIm9xRq0zEcnLuMZ8qxekWhVBf0ZJ9n3eIKZ4gN+l0dI KrHP5RLd7VBJbu1X/dBu1ZO3ReOAqVOKCIDPKFA5xj3oFdfuYMO4A6+bKxh799TG+twp y/vlWEMvvI3+AZOVV5jsSkRn3ADyxnJFWMztvPO7k02KcnyTMqLjQCgK62oDIn0jc7w0 0IhkJme7tr4UuP2GOvgo4S+Z9MOqJD8KmJ5hn3wrwoQYdAGTmtRFJhYVIo4EQ7FaIm+N UH1Q== X-Forwarded-Encrypted: i=1; AJvYcCWdwv4Itwhyr4pKXUNxuTDkPHnJHZdcy70oW9Vd2du/PmODbcOMIDAJlFP5CeJ5lGtGUmGjglkI/m/S5wz1f94RQ2A= X-Gm-Message-State: AOJu0YyFHUMXgYJVECB6F94sskKsIFFmt5TGVboG4Ql5Hk0sbMxJBMRx GsDy/EVvEVTRYrDvco7udTh5mh4U9xDKgREz2v3Naz3cBWPCftp6/CCL2FywQ34ibOVbeyoEg0W nnQ== X-Google-Smtp-Source: AGHT+IGdQihvGYGHF6PdjZpZUUK6gc/kNAnaTsu4e7xw8HeMCFzPLsdZMDhNcn3aU3W22mZMcXJG1JBkESE= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:903:110d:b0:1e5:62:7ab5 with SMTP id d9443c01a7336-1ef433d9bc7mr28285ad.0.1715284890584; Thu, 09 May 2024 13:01:30 -0700 (PDT) Date: Thu, 9 May 2024 19:58:07 +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-16-edliaw@google.com> Subject: [PATCH v3 15/68] selftests/exec: Drop duplicate -D_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 , Eric Biederman , Kees Cook 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, linux-mm@kvack.org X-Stat-Signature: tdnsundt47fhqrkhqrm1uybaxret1hk5 X-R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VmL9a9fAzlxgdCDndx0J/FqDwVNbTWneacInk/gVzc7Tab4WqjQP1R6cZAR/WhInOYr7rqjX1TxKCM9FCLGLi1KrS+0VQ68BwZCVJVQdx13Z8rNxue3jQLrT7iR+CikyBdWroYZto2L10kX2mWEgyB7+BL5Vx4fcq9LtCkXDjEkkKEPj/228qwF8EyF90nIjF3iTXshNKeN8FEXL9kiU3EoRYA99xbVbruNN8/5hb2JFCFflSSdDauyBnDGGXanhLa0AboUhZ8yn3IbhPmWU7cbug4Tbx3RhQuydZfDEvFOVuDQ1hLjdpPWtHYicazIyMMynEc9vUn4CV4NB0ebWJYpTUQt2Sxm9XwUwN9k74wfBjYTXxzDQze4WP2lJCHLP0OiAFWg1zQHttNTVO9TNRgByw1f8b63OPgIVjrUfsJ7Dg4vBQRWrM16eNqb5zPoI4woEDSZjq+RB9Uzfo8FEFaji37UygA4w4IPUljFcgWCvKi5w0Ae8mWJjEcUqFFWD9yIMRSqXxnGXKOm3ITWRGP9wRiwip5XRNVcxneLxY8qUvT6AtmmDMh/O6B656IZ174zF0ewP1WHvrkjZBn+p8Nj8WQfpLIuB2t0dtz3pXiFchNTN5HsvOIGmb/OSwlSayZnRq138IpG0bR4sTztmCHeBQXzbTHVXp42HuMdREkd8lnUAaHoPgX5dPEPic7P7yYtxyR46AKzMYp3A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.128286, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: -D_GNU_SOURCE can be de-duplicated here, as it is added by lib.mk. Signed-off-by: Edward Liaw --- tools/testing/selftests/exec/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 3c79ec9bf780..18d7a1e5a416 100644 --- a/tools/testing/selftests/exec/Makefile +++ b/tools/testing/selftests/exec/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS = -Wall CFLAGS += -Wno-nonnull -CFLAGS += -D_GNU_SOURCE TEST_PROGS := binfmt_script.py TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216 non-regular From patchwork Thu May 9 19:58:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660245 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 B8690C10F1A for ; Thu, 9 May 2024 20:02:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 540516B0098; Thu, 9 May 2024 16:02:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F0BF6B0099; Thu, 9 May 2024 16:02:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36C366B009A; Thu, 9 May 2024 16:02:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 13C3B6B0098 for ; Thu, 9 May 2024 16:02:23 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 89E52801F5 for ; Thu, 9 May 2024 20:02:22 +0000 (UTC) X-FDA: 82099929324.24.93C3F8A Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf17.hostedemail.com (Postfix) with ESMTP id B677340017 for ; Thu, 9 May 2024 20:02:20 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=xm6HR5MO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf17.hostedemail.com: domain of 3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715284940; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=1RUmf9cJeIMvC5NGDOSvhMX9w5dW7KWUwzTmHdurk8PqKeSo3XFKYl2emIL1uo0vgsWA+J tSBOrDZ9oOrIjUNFVZ+aJ7RKJpcTWhw7/vgqv9AP6ryR9NLtho253pRt8R9j1SQG9CLXAo fEsmdV8D2Ah7zRDN20XfHlKbRimOZL8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284940; a=rsa-sha256; cv=none; b=LkjpsnVe6CeZrWlaHUmevTCx8EVXlPAqB8YCaZoI3UDBMUcHHNIt39cjiFymRdh8uArJ5c YguZBb3/YtFidifxOZHejwaAGF7Rb1ma/zFpCOlstnvK5kko4sImdSuIOqlNfCsq4UKOx/ Sq9e4D4MlxzrhHtT2OrI0NvJZGMNnpw= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=xm6HR5MO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf17.hostedemail.com: domain of 3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-61510f72bb3so22894067b3.0 for ; Thu, 09 May 2024 13:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284940; x=1715889740; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=xm6HR5MOwG1HAAyHEBEHfPsYyXmFaKrcPA6jU4TGZjvA8RePoeXzu1z0+QbIlyQ813 OpBoh718nTAUR/XkNAFNN7S9s/cFlS5Ut7VcLKgKj95Njs4vVh6EtuWkWRtc0R3yE0ji G3wCucfdT6WZGE17S9lGwZSinxCnmluOujlp7JPcnHAuAvdjCgusQD5vsb59uu8ccEpj SiI1qieZIt4dW47r6s7jm9TgypIjG36bqhY8qO+nPrV2rKb7lGDQbx1LX549Ar5NsKqu Pb3wm4Hym5dDs1XQopHJTmV2c9NAsOT6pfAVdwgF5Wl4rqbD5CuGg63nMVv18lO7SGm/ Okug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284940; x=1715889740; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=BX2+jb9cwIUydS0Qt76C75M3gNaB+c+GLLF7j7Rf36pgtpNIKPSktQnmjrzqAOxesR OOYZ/aMnhvMBYn5YjzECR4BPQLNMTGzLtpYEyrHVJrTE173CVcTyjKi03sW0FnXM2Sjg j+5DbbXjKtFwzXKSqMAcLe53CLco4GHrKKckIJJgK1YSIMGe8uBQ6fsdCVQtSLjp3uEs yacaE7H64NWJprPti9nAmC/QPglBOhV6c5WA3dr976+h7j+doLWMeJXsHH9ZvbShTXBj H7182+Hb2szo5QrEOim3diEmqMdt4AxoRhFd2VRgx7bd1eIjo9wbeBV3ZPIKIo6MqEQ3 /rLw== X-Forwarded-Encrypted: i=1; AJvYcCXTxkB5S4gSyFGfvw2qVd3JOrz9Hdgr9DHlNLLSrgTb31LyM01F2uy6wiVzYTYGQxpbWAeHS2m2OA7Uz8/pHmdNbiU= X-Gm-Message-State: AOJu0Yw+XTdu0BzTHXcBCIcTCSOt4Z7VAA45aZN2Er3f88RhPiQEgnca i+itTm2Y2+Zi30y299BeYbpWSv2HuW97+CVVztRIitUxc/jlW6S0F+l26Hf+iCj6cLenPKYynTT mxw== X-Google-Smtp-Source: AGHT+IH1HCGu1gIE3DSLG2ih1KsG2DZ9PZD+3gGDYLQl8TsAe58wSaCRg5bXsgFKtYHhpV1brH7f43Zpxyg= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:6f8c:b0:61b:ea12:d0b with SMTP id 00721157ae682-622aff85f0cmr1708317b3.2.1715284939723; Thu, 09 May 2024 13:02:19 -0700 (PDT) Date: Thu, 9 May 2024 19:58:24 +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-33-edliaw@google.com> Subject: [PATCH v3 32/68] selftests/mm: 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 , Andrew Morton , Muhammad Usama Anjum , 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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ELRcXWIbPUU5E/lDEKaa+sprm3woLweOp bDCl589o eWz1W0+ZelgD680vyutEmbwXwFwNhG2Ddjxitzj6OlAGJ+ofetIzFibX+P7V2PFMXVHI3C5SYzsL9GHnFnEjWBlmO200d3xrGaf+cDaZfnZULWJYXASWSahBGLh8VaAAsDS/P30BY/e3t7n6682DxAIBRKNnuoPogldEgWTaB0JsIhr/7oHFA7StZ/ksjPXiR+x83DTSnKsElpH5bVCkhTcyrhyC4FNhoJYy0UhuWipiSTYPbZip3D9T3YO6ciHswRrPyK/dygM7QoEdZSForVVWCsX0Fd7vZkZ8HcCpy9OM9ynxwANvKHv2t7NiqP25JSBxdKXcka87vM5IOsE9cy8Ktzx0AJ74Z9VMIDA96WKhjWZlJGQtsQdX/mJYs96W+QxMN7KoGyXnOUp0PYSzcUMVFf3wJmPSpU35xpINI3YJkB1/xFRgTusDy5iifx5wBQq2S1lswDkHmuhn3y9D6A87kzpJG5xlAZVgYLxddG9nrDtjNKyPULcavkwOwdtKLKIE3GX3v5qXoMnZzYsfaOYCm8CNdHXa5AZDLqU0NCis8Jw/QmiFe78GZLoeKs5QR+S+eR+cRH2cSV++OeuCpjh/dz4iCEzR6XvZOmh5nWeAYL7fFP+mSrASXOLxUSe+uLhH/G7o7zoecw/HYVgtIL/pf/6fC+VPBhXVdxYZt5FUMiVvCHQRdIqTptV3qIaFqT6BIgC/YikaPqAHR3v+dBJ5EBRxzVtjPUIiB5mRrFnIfAxdvXx/WJ/Kqj3v6frkJSIl86O0mlD7DWHJBHuD3k0ecpA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000688, 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/mm/cow.c | 1 - tools/testing/selftests/mm/gup_longterm.c | 1 - tools/testing/selftests/mm/hugepage-mmap.c | 1 - tools/testing/selftests/mm/hugepage-mremap.c | 2 -- tools/testing/selftests/mm/hugetlb-madvise.c | 2 -- tools/testing/selftests/mm/hugetlb-read-hwpoison.c | 2 -- tools/testing/selftests/mm/khugepaged.c | 1 - tools/testing/selftests/mm/ksm_functional_tests.c | 1 - tools/testing/selftests/mm/madv_populate.c | 1 - tools/testing/selftests/mm/map_populate.c | 2 -- tools/testing/selftests/mm/mdwe_test.c | 1 - tools/testing/selftests/mm/memfd_secret.c | 2 -- tools/testing/selftests/mm/mlock2-tests.c | 1 - tools/testing/selftests/mm/mrelease_test.c | 1 - tools/testing/selftests/mm/mremap_dontunmap.c | 1 - tools/testing/selftests/mm/mremap_test.c | 2 -- tools/testing/selftests/mm/mseal_test.c | 1 - tools/testing/selftests/mm/pagemap_ioctl.c | 1 - tools/testing/selftests/mm/pkey-helpers.h | 1 - tools/testing/selftests/mm/protection_keys.c | 1 - tools/testing/selftests/mm/seal_elf.c | 1 - tools/testing/selftests/mm/split_huge_page_test.c | 2 -- tools/testing/selftests/mm/thuge-gen.c | 2 -- tools/testing/selftests/mm/uffd-common.h | 1 - 24 files changed, 32 deletions(-) diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/selftests/mm/cow.c index 32c6ccc2a6be..8747ffef200f 100644 --- a/tools/testing/selftests/mm/cow.c +++ b/tools/testing/selftests/mm/cow.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/gup_longterm.c b/tools/testing/selftests/mm/gup_longterm.c index 9423ad439a61..53c257f6159c 100644 --- a/tools/testing/selftests/mm/gup_longterm.c +++ b/tools/testing/selftests/mm/gup_longterm.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugepage-mmap.c b/tools/testing/selftests/mm/hugepage-mmap.c index 267eea2e0e0b..edb46888222f 100644 --- a/tools/testing/selftests/mm/hugepage-mmap.c +++ b/tools/testing/selftests/mm/hugepage-mmap.c @@ -16,7 +16,6 @@ * range. * Other architectures, such as ppc64, i386 or x86_64 are not so constrained. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugepage-mremap.c b/tools/testing/selftests/mm/hugepage-mremap.c index c463d1c09c9b..8e22822bb754 100644 --- a/tools/testing/selftests/mm/hugepage-mremap.c +++ b/tools/testing/selftests/mm/hugepage-mremap.c @@ -11,8 +11,6 @@ * To make sure the test triggers pmd sharing and goes through the 'unshare' * path in the mremap code use 1GB (1024) or more. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugetlb-madvise.c b/tools/testing/selftests/mm/hugetlb-madvise.c index e74107185324..70c40c67bc5d 100644 --- a/tools/testing/selftests/mm/hugetlb-madvise.c +++ b/tools/testing/selftests/mm/hugetlb-madvise.c @@ -11,8 +11,6 @@ * filesystem. Therefore, a hugetlbfs filesystem must be mounted on some * directory. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugetlb-read-hwpoison.c b/tools/testing/selftests/mm/hugetlb-read-hwpoison.c index ba6cc6f9cabc..6b8b41b4f754 100644 --- a/tools/testing/selftests/mm/hugetlb-read-hwpoison.c +++ b/tools/testing/selftests/mm/hugetlb-read-hwpoison.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/khugepaged.c b/tools/testing/selftests/mm/khugepaged.c index 829320a519e7..d18bf400dae6 100644 --- a/tools/testing/selftests/mm/khugepaged.c +++ b/tools/testing/selftests/mm/khugepaged.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/ksm_functional_tests.c b/tools/testing/selftests/mm/ksm_functional_tests.c index 37de82da9be7..b0af40ddb0fb 100644 --- a/tools/testing/selftests/mm/ksm_functional_tests.c +++ b/tools/testing/selftests/mm/ksm_functional_tests.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/madv_populate.c b/tools/testing/selftests/mm/madv_populate.c index ef7d911da13e..f2c8223ff3d4 100644 --- a/tools/testing/selftests/mm/madv_populate.c +++ b/tools/testing/selftests/mm/madv_populate.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/map_populate.c b/tools/testing/selftests/mm/map_populate.c index 5c8a53869b1b..ff4d4079bd0e 100644 --- a/tools/testing/selftests/mm/map_populate.c +++ b/tools/testing/selftests/mm/map_populate.c @@ -4,8 +4,6 @@ * * MAP_POPULATE | MAP_PRIVATE should COW VMA pages. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mdwe_test.c b/tools/testing/selftests/mm/mdwe_test.c index 1e01d3ddc11c..200bedcdc32e 100644 --- a/tools/testing/selftests/mm/mdwe_test.c +++ b/tools/testing/selftests/mm/mdwe_test.c @@ -7,7 +7,6 @@ #include #include -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/memfd_secret.c b/tools/testing/selftests/mm/memfd_secret.c index 9a0597310a76..0ba721d45d35 100644 --- a/tools/testing/selftests/mm/memfd_secret.c +++ b/tools/testing/selftests/mm/memfd_secret.c @@ -4,8 +4,6 @@ * * Author: Mike Rapoport */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mlock2-tests.c b/tools/testing/selftests/mm/mlock2-tests.c index 7f0d50fa361d..99dc39bf2fec 100644 --- a/tools/testing/selftests/mm/mlock2-tests.c +++ b/tools/testing/selftests/mm/mlock2-tests.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mrelease_test.c b/tools/testing/selftests/mm/mrelease_test.c index 100370a7111d..d78bf686e99f 100644 --- a/tools/testing/selftests/mm/mrelease_test.c +++ b/tools/testing/selftests/mm/mrelease_test.c @@ -2,7 +2,6 @@ /* * Copyright 2022 Google LLC */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mremap_dontunmap.c b/tools/testing/selftests/mm/mremap_dontunmap.c index 1d75084b9ca5..934fa6b441b2 100644 --- a/tools/testing/selftests/mm/mremap_dontunmap.c +++ b/tools/testing/selftests/mm/mremap_dontunmap.c @@ -5,7 +5,6 @@ * * Copyright 2020, Brian Geffon */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mremap_test.c b/tools/testing/selftests/mm/mremap_test.c index 1b03bcfaefdf..0d8dc16b63be 100644 --- a/tools/testing/selftests/mm/mremap_test.c +++ b/tools/testing/selftests/mm/mremap_test.c @@ -2,8 +2,6 @@ /* * Copyright 2020 Google LLC */ -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/selftests/mm/mseal_test.c index 41998cf1dcf5..d35ee37311a7 100644 --- a/tools/testing/selftests/mm/mseal_test.c +++ b/tools/testing/selftests/mm/mseal_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/pagemap_ioctl.c b/tools/testing/selftests/mm/pagemap_ioctl.c index 2d785aca72a5..50d6bfc8db05 100644 --- a/tools/testing/selftests/mm/pagemap_ioctl.c +++ b/tools/testing/selftests/mm/pagemap_ioctl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/pkey-helpers.h b/tools/testing/selftests/mm/pkey-helpers.h index 1af3156a9db8..37d6b01ce90a 100644 --- a/tools/testing/selftests/mm/pkey-helpers.h +++ b/tools/testing/selftests/mm/pkey-helpers.h @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PKEYS_HELPER_H #define _PKEYS_HELPER_H -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/protection_keys.c b/tools/testing/selftests/mm/protection_keys.c index 48dc151f8fca..9f7de92caeda 100644 --- a/tools/testing/selftests/mm/protection_keys.c +++ b/tools/testing/selftests/mm/protection_keys.c @@ -21,7 +21,6 @@ * gcc -mxsave -o protection_keys -O2 -g -std=gnu99 -pthread -Wall protection_keys.c -lrt -ldl -lm * gcc -mxsave -m32 -o protection_keys_32 -O2 -g -std=gnu99 -pthread -Wall protection_keys.c -lrt -ldl -lm */ -#define _GNU_SOURCE #define __SANE_USERSPACE_TYPES__ #include #include diff --git a/tools/testing/selftests/mm/seal_elf.c b/tools/testing/selftests/mm/seal_elf.c index f2babec79bb6..0438695bc45a 100644 --- a/tools/testing/selftests/mm/seal_elf.c +++ b/tools/testing/selftests/mm/seal_elf.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c index d3c7f5fb3e7b..ae6ac950d7a1 100644 --- a/tools/testing/selftests/mm/split_huge_page_test.c +++ b/tools/testing/selftests/mm/split_huge_page_test.c @@ -3,8 +3,6 @@ * A test of splitting PMD THPs and PTE-mapped THPs from a specified virtual * address range in a process via /split_huge_pages interface. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/thuge-gen.c b/tools/testing/selftests/mm/thuge-gen.c index ea7fd8fe2876..28a5c31bd791 100644 --- a/tools/testing/selftests/mm/thuge-gen.c +++ b/tools/testing/selftests/mm/thuge-gen.c @@ -12,8 +12,6 @@ ipcrm -m by hand, like this sudo ipcs | awk '$1 == "0x00000000" {print $2}' | xargs -n1 sudo ipcrm -m (warning this will remove all if someone else uses them) */ - -#define _GNU_SOURCE 1 #include #include #include diff --git a/tools/testing/selftests/mm/uffd-common.h b/tools/testing/selftests/mm/uffd-common.h index cc5629c3d2aa..abb44319264a 100644 --- a/tools/testing/selftests/mm/uffd-common.h +++ b/tools/testing/selftests/mm/uffd-common.h @@ -7,7 +7,6 @@ #ifndef __UFFD_COMMON_H__ #define __UFFD_COMMON_H__ -#define _GNU_SOURCE #include #include #include