]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
selftests: fix warning: "_GNU_SOURCE" redefined
authorPeng Hao <peng.hao2@zte.com.cn>
Thu, 11 Oct 2018 19:53:50 +0000 (03:53 +0800)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 24 Oct 2018 20:49:37 +0000 (14:49 -0600)
Makefile contains -D_GNU_SOURCE. remove define "_GNU_SOURCE"
in c files.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/proc/fd-001-lookup.c
tools/testing/selftests/proc/fd-003-kthread.c

index a2010dfb2110433c31ceca180e6853a1c5e89087..60d7948e7124fda1f5f881b64c482e3b10bd5d8a 100644 (file)
@@ -14,7 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 // Test /proc/*/fd lookup.
-#define _GNU_SOURCE
+
 #undef NDEBUG
 #include <assert.h>
 #include <dirent.h>
index 1d659d55368c2d79fbe99cd1ab6842d6643b9eed..dc591f97b63d4e8a04b58068c9f5bccf0983c58e 100644 (file)
@@ -14,7 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 // Test that /proc/$KERNEL_THREAD/fd/ is empty.
-#define _GNU_SOURCE
+
 #undef NDEBUG
 #include <sys/syscall.h>
 #include <assert.h>