summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/cgroup/test_memcontrol.c
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2024-05-16 20:22:37 -0600
committerShuah Khan <skhan@linuxfoundation.org>2024-05-20 09:00:15 -0600
commita97853f25b06f71c23b2d7a59fbd40f3f42d55ac (patch)
treec420c9770c244dd666984e64824be4a57143523d /tools/testing/selftests/cgroup/test_memcontrol.c
parent3da164023582969280df17636a9d829752787b1c (diff)
downloadlinux-a97853f25b06f71c23b2d7a59fbd40f3f42d55ac.tar.gz
linux-a97853f25b06f71c23b2d7a59fbd40f3f42d55ac.tar.bz2
linux-a97853f25b06f71c23b2d7a59fbd40f3f42d55ac.zip
Revert "selftests/cgroup: Drop define _GNU_SOURCE"
This reverts commit c1457d9aad5ee2feafcf85aa9a58ab50500159d2. The framework change to add D_GNU_SOURCE to KHDR_INCLUDES to Makefile, lib.mk, and kselftest_harness.h is reverted as it is causing build failures and warnings. Revert this change as this change depends on the framework change. Reported-by: Mark Brown <broonie@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/test_memcontrol.c')
-rw-r--r--tools/testing/selftests/cgroup/test_memcontrol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c
index c871630d62a3..41ae8047b889 100644
--- a/tools/testing/selftests/cgroup/test_memcontrol.c
+++ b/tools/testing/selftests/cgroup/test_memcontrol.c
@@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
+#define _GNU_SOURCE
+
#include <linux/limits.h>
#include <linux/oom.h>
#include <fcntl.h>