aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2024-06-10 18:14:46 +0300
committerShuah Khan <[email protected]>2024-07-11 11:23:53 -0600
commit8245a70edad18e5eba479c5ea91beb590590b237 (patch)
treec00242cd73d598fea1520f0a7f6294ad3d87d971 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent9224db5180f244f169fb81a3c88c48bf612ba238 (diff)
selftests/resctrl: Use correct type for pids
A few functions receive PIDs through int arguments. PIDs variables should be of type pid_t, not int. Convert pid arguments from int to pid_t. Before printing PID, match the type to %d by casting to int which is enough for Linux (standard would allow using a longer integer type but generalizing for that would complicate the code unnecessarily, the selftest code does not need to be portable). Signed-off-by: Ilpo Järvinen <[email protected]> Tested-by: Babu Moger <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions