From: Michal Koutný Date: Tue, 17 Jun 2025 13:36:56 +0000 (+0200) Subject: selftests: cgroup: Fix compilation on pre-cgroupns kernels X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da4f9db980cc475bb6f027153cce75eaa3026ec;p=thirdparty%2Fkernel%2Flinux.git 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ý Signed-off-by: Tejun Heo --- diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index 452c2abf9794e..a360e2eb2eefd 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -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) {