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