aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/proc/proc-uptime-002.c
diff options
context:
space:
mode:
authorTommi Rantala <tommi.t.rantala@nokia.com>2020-10-08 15:26:30 +0300
committerShuah Khan <skhan@linuxfoundation.org>2020-11-05 10:08:14 -0700
commitf3ae6c6e8a3ea49076d826c64e63ea78fbf9db43 (patch)
tree47f776692c32592a3ad362ed6f2c20237aed2019 /tools/testing/selftests/proc/proc-uptime-002.c
parentselftests: pidfd: drop needless linux/kcmp.h inclusion in pidfd_setns_test.c (diff)
downloadlinux-dev-f3ae6c6e8a3ea49076d826c64e63ea78fbf9db43.tar.xz
linux-dev-f3ae6c6e8a3ea49076d826c64e63ea78fbf9db43.zip
selftests: proc: fix warning: _GNU_SOURCE redefined
Makefile already contains -D_GNU_SOURCE, so we can remove it from the *.c files. Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/proc/proc-uptime-002.c')
-rw-r--r--tools/testing/selftests/proc/proc-uptime-002.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/proc/proc-uptime-002.c b/tools/testing/selftests/proc/proc-uptime-002.c
index 30e2b7849089..e7ceabed7f51 100644
--- a/tools/testing/selftests/proc/proc-uptime-002.c
+++ b/tools/testing/selftests/proc/proc-uptime-002.c
@@ -15,7 +15,6 @@
*/
// Test that values in /proc/uptime increment monotonically
// while shifting across CPUs.
-#define _GNU_SOURCE
#undef NDEBUG
#include <assert.h>
#include <unistd.h>