Linux-Security-Module Archive mirror
 help / color / mirror / Atom feed
From: Edward Liaw <edliaw@google.com>
To: shuah@kernel.org, "Mickaël Salaün" <mic@digikod.net>,
	"Günther Noack" <gnoack@google.com>,
	"Christian Brauner" <brauner@kernel.org>,
	"Richard Cochran" <richardcochran@gmail.com>,
	"Paul Walmsley" <paul.walmsley@sifive.com>,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Albert Ou" <aou@eecs.berkeley.edu>,
	"Alexei Starovoitov" <ast@kernel.org>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"David S. Miller" <davem@davemloft.net>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Jesper Dangaard Brouer" <hawk@kernel.org>,
	"John Fastabend" <john.fastabend@gmail.com>,
	"OGAWA Hirofumi" <hirofumi@mail.parknet.co.jp>
Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
	 kernel-team@android.com, Edward Liaw <edliaw@google.com>,
	 linux-security-module@vger.kernel.org, netdev@vger.kernel.org,
	 linux-riscv@lists.infradead.org, bpf@vger.kernel.org,
	 John Hubbard <jhubbard@nvidia.com>,
	Muhammad Usama Anjum <usama.anjum@collabora.com>
Subject: [PATCH v4 16/66] selftests/filesystems: Drop define _GNU_SOURCE
Date: Fri, 10 May 2024 00:06:33 +0000	[thread overview]
Message-ID: <20240510000842.410729-17-edliaw@google.com> (raw)
In-Reply-To: <20240510000842.410729-1-edliaw@google.com>

_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent
redefinition warnings.

Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Edward Liaw <edliaw@google.com>
---
 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 <errno.h>
 #include <fcntl.h>
 #include <pthread.h>
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 <errno.h>
 #include <fcntl.h>
 #include <sched.h>
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 <fcntl.h>	/* in glibc 2.2 this has the needed
 				   values defined */
 #include <signal.h>
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 <asm/unistd.h>
 #include <linux/time_types.h>
 #include <poll.h>
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 <errno.h>
 #include <fcntl.h>
 #include <asm/unistd.h>
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 <javierm@redhat.com>
  */
-
-#define _GNU_SOURCE
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
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 <inttypes.h>
 #include <unistd.h>
 #include <stdio.h>
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 <assert.h>
 #include <stddef.h>
 #include <stdint.h>
-- 
2.45.0.118.g7fe29c98d7-goog


  parent reply	other threads:[~2024-05-10  0:09 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10  0:06 [PATCH v4 00/66] Define _GNU_SOURCE for sources using Edward Liaw
2024-05-10  0:06 ` [PATCH v4 01/66] selftests: Compile with -D_GNU_SOURCE when including lib.mk Edward Liaw
2024-05-10  0:06 ` [PATCH v4 02/66] selftests/arm64: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 03/66] selftests/arm64: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 04/66] selftests/bpf: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 05/66] selftests/breakpoints: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 06/66] selftests/cachestat: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 07/66] selftests/capabilities: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 08/66] selftests/cgroup: " Edward Liaw
2024-05-13 17:02   ` Tejun Heo
2024-05-16 15:50     ` Shuah Khan
2024-05-16 16:21       ` Tejun Heo
2024-05-16 16:31         ` Shuah Khan
2024-05-16 17:45           ` Tejun Heo
2024-05-16 18:05             ` Shuah Khan
2024-05-17  3:47               ` Shuah Khan
2024-05-10  0:06 ` [PATCH v4 09/66] selftests/clone3: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 10/66] selftests/core: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 11/66] selftests/damon: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 12/66] selftests/drivers: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 13/66] selftests/exec: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10 17:44   ` Kees Cook
2024-05-10  0:06 ` [PATCH v4 14/66] selftests/fchmodat2: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 15/66] selftests/filelock: " Edward Liaw
2024-05-10  0:06 ` Edward Liaw [this message]
2024-05-10  0:06 ` [PATCH v4 17/66] selftests/firmware: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 18/66] selftests/fpu: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 19/66] selftests/futex: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 20/66] selftests/futex: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 21/66] selftests/intel_pstate: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 22/66] selftests/iommu: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 23/66] selftests/ipc: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 24/66] selftests/kcmp: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 25/66] selftests/landlock: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 26/66] selftests/lsm: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 27/66] selftests/membarrier: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 28/66] selftests/memfd: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 29/66] selftests/mincore: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 30/66] selftests/mm: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 31/66] selftests/mount: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 32/66] selftests/mount_setattr: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 33/66] selftests/move_mount_set_group: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 34/66] selftests/mqueue: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 35/66] selftests/net: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 36/66] selftests/net: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:06 ` [PATCH v4 37/66] selftests/nolibc: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  6:58   ` Thomas Weißschuh
2024-05-10  0:06 ` [PATCH v4 38/66] selftests/nsfs: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 39/66] selftests/openat2: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 40/66] selftests/perf_events: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 41/66] selftests/pid_namespace: " Edward Liaw
2024-05-10  0:06 ` [PATCH v4 42/66] selftests/pidfd: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 43/66] selftests/ptrace: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 44/66] selftests/powerpc: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 45/66] selftests/proc: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 46/66] selftests/proc: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 47/66] selftests/ptp: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 48/66] selftests/resctrl: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 49/66] selftests/riscv: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 50/66] selftests/riscv: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 51/66] selftests/rlimits: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 52/66] selftests/rseq: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 53/66] selftests/safesetid: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 54/66] selftests/sched: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 55/66] selftests/seccomp: " Edward Liaw
2024-05-10 17:45   ` Kees Cook
2024-05-10  0:07 ` [PATCH v4 56/66] selftests/sigaltstack: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 57/66] selftests/splice: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 58/66] selftests/syscall_user_dispatch: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 59/66] selftests/thermal: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 60/66] selftests/timens: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 61/66] selftests/tmpfs: Drop duplicate -D_GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 62/66] selftests/uevent: Drop define _GNU_SOURCE Edward Liaw
2024-05-10  0:07 ` [PATCH v4 63/66] selftests/user_events: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 64/66] selftests/vDSO: " Edward Liaw
2024-05-10  0:07 ` [PATCH v4 65/66] selftests/wireguard: " Edward Liaw
2024-05-17 14:48   ` Jason A. Donenfeld
2024-05-10  0:07 ` [PATCH v4 66/66] selftests/x86: " Edward Liaw
2024-05-16 15:55 ` [PATCH v4 00/66] Define _GNU_SOURCE for sources using Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240510000842.410729-17-edliaw@google.com \
    --to=edliaw@google.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=brauner@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=gnoack@google.com \
    --cc=hawk@kernel.org \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=jhubbard@nvidia.com \
    --cc=john.fastabend@gmail.com \
    --cc=kernel-team@android.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=mic@digikod.net \
    --cc=netdev@vger.kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=richardcochran@gmail.com \
    --cc=shuah@kernel.org \
    --cc=usama.anjum@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).