mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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ý <mkoutny@suse.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
d74cd7864f
commit
5da4f9db98
|
|
@ -21,6 +21,9 @@
|
|||
#include "cgroup_util.h"
|
||||
|
||||
static bool nsdelegate;
|
||||
#ifndef CLONE_NEWCGROUP
|
||||
#define CLONE_NEWCGROUP 0
|
||||
#endif
|
||||
|
||||
static int touch_anon(char *buf, size_t size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user