linux/tools/testing/selftests/powerpc/pmu
Michael Ellerman ff446cd768 selftests/powerpc: Avoid GCC 12 uninitialised variable warning
GCC 12 thinks that `actual` might be used uninitialised. It's not, the
use is guarded by `bad_mmcr2` which is only set to true at the same
point where `actual` is initialised.

  cycles_with_mmcr2_test.c: In function ‘cycles_with_mmcr2’:
  cycles_with_mmcr2_test.c:81:17: error: ‘actual’ may be used uninitialized [-Werror=maybe-uninitialized]
     81 |                 printf("Bad MMCR2 value seen is 0x%lx\n", actual);

Silence the warning by initialising `actual` to zero.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220801113746.802046-1-mpe@ellerman.id.au
2022-08-01 22:21:18 +10:00
..
ebb selftests/powerpc: Avoid GCC 12 uninitialised variable warning 2022-08-01 22:21:18 +10:00
event_code_tests selftests/powerpc/pmu: Add test for hardware cache events 2022-06-29 08:57:45 +10:00
sampling_tests selftests/powerpc/pmu: Add interface test for bhrb disable field for non-branch samples 2022-06-29 08:57:42 +10:00
.gitignore selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
Makefile selftests/powerpc/pmu: Add support for perf event code tests 2022-06-29 08:57:42 +10:00
branch_loops.S selftests/powerpc/pmu: Add interface test for mmcra_ifm field of indirect call type 2022-06-28 23:57:55 +10:00
count_instructions.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
count_stcx_fail.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
event.c selftests/powerpc/pmu: Add event_init_sampling function 2022-03-01 23:38:13 +11:00
event.h selftests/powerpc/pmu: Add event_init_sampling function 2022-03-01 23:38:13 +11:00
l3_bank_test.c selftests/powerpc: Skip L3 bank test on older CPUs 2020-09-08 22:24:08 +10:00
lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lib.h selftests/powerpc: Add test of stack expansion logic 2020-07-29 21:02:11 +10:00
loop.S selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
per_event_excludes.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00