summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cgroup/test_memcontrol.c
diff options
context:
space:
mode:
authorEdward Liaw <edliaw@google.com>2024-05-10 03:06:25 +0300
committerTejun Heo <tj@kernel.org>2024-05-13 20:02:36 +0300
commitc1457d9aad5ee2feafcf85aa9a58ab50500159d2 (patch)
tree2c98541223f9d462102d5e5dcbf14bcb1eb2cf54 /tools/testing/selftests/cgroup/test_memcontrol.c
parent62158261a88fab201433686c603cbd7775f55197 (diff)
downloadlinux-c1457d9aad5ee2feafcf85aa9a58ab50500159d2.tar.xz
selftests/cgroup: Drop define _GNU_SOURCE
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw <edliaw@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/test_memcontrol.c')
-rw-r--r--tools/testing/selftests/cgroup/test_memcontrol.c2
1 files changed, 0 insertions, 2 deletions
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 <linux/limits.h>
#include <linux/oom.h>
#include <fcntl.h>