Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp182779lqo; Thu, 9 May 2024 17:16:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcYmleHrdrlT7PC2bo3Vp9AYoupHAAIsoOvu9XlRElj3pzNnnSfvjxE3PZ2KvzJZ6qb/elXUAtx6Z6PfTiTXVZ+NEycQmLkIJTdpSfxg== X-Google-Smtp-Source: AGHT+IGDnTuE2lt+H8j1iWrWn4ro+bzpTifVeoxJlcrjauTVxLnZSrXF69jvl0dImgv0rkYy8CJR X-Received: by 2002:a05:6122:a10:b0:4d8:37eb:9562 with SMTP id 71dfb90a1353d-4df881807a0mr1619901e0c.0.1715300181492; Thu, 09 May 2024 17:16:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715300181; cv=pass; d=google.com; s=arc-20160816; b=ErFBEb4pH1L7NmA+kQefFgen51dZfT0bVCc8ovGT+ekSg309vWYeLMzL+tRFrGoOFp CNLwAI5ZjBgFjzZD7zDzn8+EePvE9KD+m+O/75zgKIeeDAGasxysRS6mryTQrXqw0ajH xQ7yjMqoKelH3KfUnZIr8c+yqyGJhknPyEXAlOBlOkXKuRKTIXCDv40WIHgrhY07zhrk ygmOqP/WxILWKetfu3Wn46fbjmBGuq+VtZTXgQakMd3XRIVICLgpSLWFZ9YPu/g+gEC5 4q6X1wFmSozzycMCKk9qUmb7Et4WQNmdb7ko3c447cpSyL6wVYzuQQjRojp4ouZQ/hwu GBBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=tuMq0VwTGU6ryY2Jy9N3vXpEbju3toV+EO4EgzSUctQ=; fh=B+Gsx1S2Y6vRnN8Bl1v7pQJ7W5w17UC/3CC3s/c1XlU=; b=QPwK7BGZyTVFOJ9mXUd9FO5GJdrTy8aidkhIbVYhx7BEpJv3nYSmFPnFeLqqzdhqXW zSvRFFjChGrOyF6asmYkRwnIVbk+erhF7nDmBTBoyEnqPMI93D9Z7Zgq3kLDh1amocUI UHWqzOT+jWD+IXjjzi3PRx9WOo/JH5+u4/ALrx3dzDx1fxJQrtWtn84nVXTnxvQhSCE8 kjpwZX1E4hkPUgsNvOt3lkriO/C204V9tf+XQFaPIuMC9xo03eKpVEXV8Qaqz6sf19DC B8Qwq3BEOGH4yT1Jy/XPPFo7JFF6KrVHYoQR5uHjW8G+4/PeJrCmjMXRy8ho181xTZUY SA4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Wxlrpjd/"; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2b6386si25352256d6.340.2024.05.09.17.16.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:16:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Wxlrpjd/"; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-175112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A7C71C2168C for ; Fri, 10 May 2024 00:16:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C82785E22C; Fri, 10 May 2024 00:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Wxlrpjd/" Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45C3D54675 for ; Fri, 10 May 2024 00:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299793; cv=none; b=CnWOU5PTGO+ZvL6h95oL87FaOkWo3lYjjAe9NSwnZAdhGTQLtE9Teo52AIDQryglbq9yHq4DTmjm5J9HK35inOVWFFby3QWL7kgoTSdoQxxMUOy88bUJ7yN1d+7I5D4PHkfc8OkORq/HKipG18lUcGNBVpJaMvL9MEvzGTKPDL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299793; c=relaxed/simple; bh=WDtREi3NV1ph43HtRoTGL/PgxME/3JGpKxVhjvEJiaQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nb40CDm3mv9+ziS5QMLqonj/GnTme4bgGX6g9y3Vh+c7XwBdL1P3a8g9ar5LNLtLX/ukD/7xkRBgOLvX9vIsYa/7aG3gvh9sk2G52UNsPLzqIxamP3fAVucf4vRmO/NHcu7xLTha+1H1OuCE/Y85OELXq6wI8ckQWBta3jUTMz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Wxlrpjd/; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2b6209f5246so1426271a91.2 for ; Thu, 09 May 2024 17:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299792; x=1715904592; darn=vger.kernel.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=tuMq0VwTGU6ryY2Jy9N3vXpEbju3toV+EO4EgzSUctQ=; b=Wxlrpjd/pxC178N/VpQW/GkKbu6m4GewVaYJWlIwbo0jVuEMEp5P+C2xJdOw4PKRIy 0noQgu6VY3G495/f8/dg/2kyQ9CZCKExHqyKZLJxHyJrQQWvY70sp0IzXgWlSAt2IskL esUMotttxMKUZDHb2myl64IPnywwRl19UhAXnrMNvb922LgC9xJjPdg+R4afPRqItsOP nniGUKCtzGGxpfCnrvoglpryfLfmX4egYXf+fbiZDnSy/pRsQpmNRK8I4vtOMMt16lmG LEoGvD3h+4SRtVrqjpy21oeL0fbI/FtUiKUulmLUVwDsCem6Qv6dfsRWt1dRuCKtiqxO NFTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299792; x=1715904592; 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=tuMq0VwTGU6ryY2Jy9N3vXpEbju3toV+EO4EgzSUctQ=; b=HucJooqx9nYzjFTlre3lV1w++UuHvHdmNRhRzHT5Yy1MNgNGSIYpt2T8jJn1+4mpYc NRd34LV4Rv5+Y2nITwds3dDJFSN7wVoHVa7ErNFnyR/K42DJ1bFx8nCEQzItsthh14cv 2+RUTTAEd1xfampkqOurcYV6KYFk5+auyxe6IMYNXEY56pjL/34m+mIBrdkxCuOg26zf Uj01k9rwz3zAIlwKo/U54LZE8HVysYAuhL9vJb5V9xwNcXGdQBKkKc1jWMPEPYYtfVwH Ii4PxNFuLo1kxc+IZFTyMH9S7WU4TgUL79AlQNRQoI3r8S/4o1vy1LKNI7LLm891zaF/ 5fLw== X-Gm-Message-State: AOJu0YxOo+a6Wqiem3QgiPWIrBc1ZJuBY81EcMnVPui5/ecA1ogbu5lr NYRArpCI3oFOAWD1WKbNLuhjyndRWv5LCcuBkEJeQ2Lv2U0lvMlqKjwR6on0ED1R9ztfRDKfMsL sRg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:90a:a082:b0:2b3:c26d:4589 with SMTP id 98e67ed59e1d1-2b6ccef6e35mr2868a91.6.1715299791671; Thu, 09 May 2024 17:09:51 -0700 (PDT) Date: Fri, 10 May 2024 00:06:33 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-17-edliaw@google.com> Subject: [PATCH v4 16/66] selftests/filesystems: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , OGAWA Hirofumi 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, John Hubbard , Muhammad Usama Anjum Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/filesystems/binderfs/binderfs_test.c | 2 -- tools/testing/selftests/filesystems/devpts_pts.c | 1 - tools/testing/selftests/filesystems/dnotify_test.c | 1 - tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c | 2 -- tools/testing/selftests/filesystems/eventfd/eventfd_test.c | 2 -- tools/testing/selftests/filesystems/fat/rename_exchange.c | 2 -- tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c | 2 -- tools/testing/selftests/filesystems/statmount/statmount_test.c | 3 --- 8 files changed, 15 deletions(-) diff --git a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c b/tools/testing/selftests/filesystems/binderfs/binderfs_test.c index 5f362c0fd890..fca693db1b09 100644 --- a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c +++ b/tools/testing/selftests/filesystems/binderfs/binderfs_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/filesystems/devpts_pts.c b/tools/testing/selftests/filesystems/devpts_pts.c index b1fc9b916ace..73766447eeb0 100644 --- a/tools/testing/selftests/filesystems/devpts_pts.c +++ b/tools/testing/selftests/filesystems/devpts_pts.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/filesystems/dnotify_test.c b/tools/testing/selftests/filesystems/dnotify_test.c index c0a9b2d3302d..05367a70b963 100644 --- a/tools/testing/selftests/filesystems/dnotify_test.c +++ b/tools/testing/selftests/filesystems/dnotify_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE /* needed to get the defines */ #include /* in glibc 2.2 this has the needed values defined */ #include diff --git a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c index 65ede506305c..9bc2ddad7e92 100644 --- a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c +++ b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/filesystems/eventfd/eventfd_test.c b/tools/testing/selftests/filesystems/eventfd/eventfd_test.c index f142a137526c..17935f42fbc9 100644 --- a/tools/testing/selftests/filesystems/eventfd/eventfd_test.c +++ b/tools/testing/selftests/filesystems/eventfd/eventfd_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/filesystems/fat/rename_exchange.c b/tools/testing/selftests/filesystems/fat/rename_exchange.c index e488ad354fce..56cf3ad8640d 100644 --- a/tools/testing/selftests/filesystems/fat/rename_exchange.c +++ b/tools/testing/selftests/filesystems/fat/rename_exchange.c @@ -6,8 +6,6 @@ * Copyright 2022 Red Hat Inc. * Author: Javier Martinez Canillas */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c index 759f86e7d263..b58a80bde95a 100644 --- a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c +++ b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/filesystems/statmount/statmount_test.c b/tools/testing/selftests/filesystems/statmount/statmount_test.c index e6d7c4f1c85b..c8944effb780 100644 --- a/tools/testing/selftests/filesystems/statmount/statmount_test.c +++ b/tools/testing/selftests/filesystems/statmount/statmount_test.c @@ -1,7 +1,4 @@ // SPDX-License-Identifier: GPL-2.0-or-later - -#define _GNU_SOURCE - #include #include #include -- 2.45.0.118.g7fe29c98d7-goog