Skip to content

Commit c1457d9

Browse files
edliawhtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 6215826 commit c1457d9

File tree

7 files changed

+0
-15
lines changed

7 files changed

+0
-15
lines changed

tools/testing/selftests/cgroup/cgroup_util.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
3-
#define _GNU_SOURCE
4-
52
#include <errno.h>
63
#include <fcntl.h>
74
#include <linux/limits.h>

tools/testing/selftests/cgroup/test_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
3-
#define _GNU_SOURCE
42
#include <linux/limits.h>
53
#include <linux/sched.h>
64
#include <sys/types.h>

tools/testing/selftests/cgroup/test_cpu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
3-
#define _GNU_SOURCE
42
#include <linux/limits.h>
53
#include <sys/sysinfo.h>
64
#include <sys/wait.h>

tools/testing/selftests/cgroup/test_hugetlb_memcg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
#define _GNU_SOURCE
3-
42
#include <linux/limits.h>
53
#include <sys/mman.h>
64
#include <stdio.h>

tools/testing/selftests/cgroup/test_kmem.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
#define _GNU_SOURCE
3-
42
#include <linux/limits.h>
53
#include <fcntl.h>
64
#include <stdio.h>

tools/testing/selftests/cgroup/test_memcontrol.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#define _GNU_SOURCE
3-
42
#include <linux/limits.h>
53
#include <linux/oom.h>
64
#include <fcntl.h>

tools/testing/selftests/cgroup/test_zswap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
#define _GNU_SOURCE
3-
42
#include <linux/limits.h>
53
#include <unistd.h>
64
#include <stdio.h>

0 commit comments

Comments
 (0)