selftests/powerpc/pmu: Fix unsigned function returning negative constant
authorHaowen Bai <baihaowen@meizu.com>
Sun, 24 Apr 2022 08:26:41 +0000 (16:26 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Apr 2022 03:17:00 +0000 (13:17 +1000)
commita84ca704d8306a949578d36c028c8e1bab3dcf0b
tree0a7f9912eccf4497473aef774354a993bd447287
parent2fb70d1d36e2f8482a78bb8aae688ae1416af889
selftests/powerpc/pmu: Fix unsigned function returning negative constant

The function __perf_reg_mask has an unsigned return type, but returns a
negative constant to indicate an error condition. So we change unsigned
to int.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1650788802-14402-1-git-send-email-baihaowen@meizu.com
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c