Re: [PATCH] selftests/powerpc/pmu: Fix unsigned function returning negative constant

2022-05-15 Thread Michael Ellerman
On Sun, 24 Apr 2022 16:26:41 +0800, Haowen Bai wrote: > 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. > > Applied to powerpc/next. [1/1] selftests/powerpc/pmu: Fix unsigned function ret

Re: [PATCH] selftests/powerpc/pmu: Fix unsigned function returning negative constant

2022-04-25 Thread kajoljain
On 4/24/22 13:56, Haowen Bai wrote: > 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 > --- > tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c | 2

[PATCH] selftests/powerpc/pmu: Fix unsigned function returning negative constant

2022-04-24 Thread Haowen Bai
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 --- tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d