mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
When compiling the cgroup selftests with the following command:
make -C tools/testing/selftests/cgroup/
the compiler complains as below:
test_cpu.c: In function ‘test_cpucg_nice’:
test_cpu.c:284:39: error: incompatible type for argument 2 of ‘hog_cpus_timed’
284 | hog_cpus_timed(cpucg, param);
| ^~~~~
| |
| struct cpu_hog_func_param
test_cpu.c:132:53: note: expected ‘void *’ but argument is of type ‘struct cpu_hog_func_param’
132 | static int hog_cpus_timed(const char *cgroup, void *arg)
| ~~~~~~^~~
Fix it by passing the address of param to hog_cpus_timed().
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| .gitignore | ||
| cgroup_util.c | ||
| cgroup_util.h | ||
| config | ||
| Makefile | ||
| memcg_protection.m | ||
| test_core.c | ||
| test_cpu.c | ||
| test_cpuset.c | ||
| test_cpuset_prs.sh | ||
| test_cpuset_v1_base.sh | ||
| test_cpuset_v1_hp.sh | ||
| test_freezer.c | ||
| test_hugetlb_memcg.c | ||
| test_kill.c | ||
| test_kmem.c | ||
| test_memcontrol.c | ||
| test_pids.c | ||
| test_stress.sh | ||
| test_zswap.c | ||
| wait_inotify.c | ||
| with_stress.sh | ||