aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2021-10-26 07:32:11 +0000
committerBoris Ostrovsky <[email protected]>2021-11-02 07:45:44 -0500
commitcbd5458ef19594c7a1ec69e77a624a5502a79eb9 (patch)
tree839c5cad21a22db77d99bad4c77298f717478a83 /tools/perf/scripts/python/syscall-counts.py
parent9e2b3e834c450ce23073093992f450544100c99a (diff)
xen: Fix implicit type conversion
The variable 'i' is defined as UINT. However, in the for_each_possible_cpu its value is assigned to -1. That doesn't make sense and in the cpumask_next() it is implicitly type converted to INT. It is universally accepted that the implicit type conversion is terrible. Also, having the good programming custom will set an example for others. Thus, it might be better to change the definition of 'i' from UINT to INT. [boris: fixed commit message formatting] Fixes: 3fac10145b76 ("xen: Re-upload processor PM data to hypervisor after S3 resume (v2)") Signed-off-by: Jiasheng Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Juergen Gross <[email protected]> Reviewed-by: Jiamei Xie <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions