Skip to content

Commit 5da4f9d

Browse files
Werkovhtejun
authored andcommitted
selftests: cgroup: Fix compilation on pre-cgroupns kernels
The test would be skipped because of nsdelegate, so the defined value is not used (0 is always acceptable). Signed-off-by: Michal Koutný <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent d74cd78 commit 5da4f9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/cgroup/test_core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include "cgroup_util.h"
2222

2323
static bool nsdelegate;
24+
#ifndef CLONE_NEWCGROUP
25+
#define CLONE_NEWCGROUP 0
26+
#endif
2427

2528
static int touch_anon(char *buf, size_t size)
2629
{

0 commit comments

Comments
 (0)