From: Geert Uytterhoeven Date: Tue, 10 Nov 2015 22:45:06 +0000 (-0800) Subject: selftests/mlock2: add missing #define _GNU_SOURCE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60997feb14d5634fc7a9b18ab3c026ba8d3a5839;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git selftests/mlock2: add missing #define _GNU_SOURCE On glibc 2.3.6: mlock2-tests.c: In function 'seek_to_smaps_entry': mlock2-tests.c:158: warning: implicit declaration of function 'getline' According to the manpage of getline(), it needs _GNU_SOURCE before glibc 2.10. Signed-off-by: Geert Uytterhoeven Acked-by: Eric B Munson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c index 4431994aade2..cb247219f1f7 100644 --- a/tools/testing/selftests/vm/mlock2-tests.c +++ b/tools/testing/selftests/vm/mlock2-tests.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include #include #include