linux-next: build failure after merge of the cgroup tree
From: Mark Brown
Date: Thu Dec 03 2026 - 13:14:06 EST
Hi all,
After merging the cgroup tree, today's linux-next build
(arm64 kselftest) failed like this:
CC test_memcontrol
test_memcontrol.c: In function 'test_memcg_oom_group_spawn':
test_memcontrol.c:1981:13: error: implicit declaration
of function 'cg_read_key_long'; did you mean
'cg_read_key_s64'? [-Wimplicit-function-declaration]
1981 | if (cg_read_key_long(outside, "memory.events", "oom_kill ") != 0)
| ^~~~~~~~~~~~~~~~ cg_read_key_s64
Caused by commit
79922ba71c838 (selftests/cgroup: convert cg_read_*long*() helpers to s64)
interacting with commit
679e720280335 (selftests/cgroup: test the oom killer with a vfork() child)
from the vfs-brauner tree. I have applied the fixup below which I can
carry as needed:
From dd5d80673fc48535e672ce92d9a5d1c3659d98f3 Mon Sep 17 00:00:00 2001
From: Mark Brown <broonie@xxxxxxxxxx>
Date: Thu, 3 Dec 2026 18:06:01 +0000
Subject: [PATCH] selftests: cgroup: Fix up merge due to cg_read_key_s64()
transistion
Fix up
CC test_memcontrol
test_memcontrol.c: In function 'test_memcg_oom_group_spawn':
test_memcontrol.c:1981:13: error: implicit declaration
of function 'cg_read_key_long'; did you mean
'cg_read_key_s64'? [-Wimplicit-function-declaration]
1981 | if (cg_read_key_long(outside, "memory.events", "oom_kill ") != 0)
| ^~~~~~~~~~~~~~~~ cg_read_key_s64
Caused by commit
79922ba71c838 (selftests/cgroup: convert cg_read_*long*() helpers to s64)
interacting with commit
679e720280335 (selftests/cgroup: test the oom killer with a vfork() child)
from the vfs-brauner tree.
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
tools/testing/selftests/cgroup/test_memcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c
index 07bb94b375e73..4f2c354abbb79 100644
--- a/tools/testing/selftests/cgroup/test_memcontrol.c
+++ b/tools/testing/selftests/cgroup/test_memcontrol.c
@@ -1978,7 +1978,7 @@ static int test_memcg_oom_group_spawn(const char *root)
goto cleanup;
/* The kill of the child is counted where the child was. */
- if (cg_read_key_long(outside, "memory.events", "oom_kill ") != 0)
+ if (cg_read_key_s64(outside, "memory.events", "oom_kill ") != 0)
goto cleanup;
ret = KSFT_PASS;
--
2.47.3
Attachment:
signature.asc
Description: PGP signature