[PATCH] selftests/powerpc: Fix uninitialized variable warning
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Dec 10 22:30:08 AEDT 2020
On Tue, 1 Dec 2020 14:54:03 +0530, Harish wrote:
> Patch fixes uninitialized variable warning in bad_accesses test
> which causes the selftests build to fail in older distibutions
>
> bad_accesses.c: In function âbad_accessâ:
> bad_accesses.c:52:9: error: âxâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> printf("Bad - no SEGV! (%c)\n", x);
> ^
> cc1: all warnings being treated as errors
Applied to powerpc/next.
[1/1] selftests/powerpc: Fix uninitialized variable warning
https://git.kernel.org/powerpc/c/c9344769e2b46ba28b947bec7a8a8f0a091ecd57
cheers
More information about the Linuxppc-dev
mailing list