diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2024-10-11 09:11:53 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-10-15 04:05:39 +0300 |
commit | 11312c86f9d7d1bffe0587185934a7070ce9ec33 (patch) | |
tree | 28227c2565897f7c0d771b66d4aec98234710223 /tools/perf/scripts/python/task-analyzer.py | |
parent | 2e82c0d4562a4b8292af83577b70af888a93d16d (diff) | |
download | linux-11312c86f9d7d1bffe0587185934a7070ce9ec33.tar.xz |
selftests/cgroup: Fix compile error in test_cpu.c
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: 2e82c0d4562a ("cgroup/rstat: Selftests for niced CPU statistics")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions