powerpc/sstep: Avoid used uninitialized error

Michael Ellerman patch-notifications at ellerman.id.au
Wed Sep 6 20:55:24 AEST 2017


On Fri, 2017-09-01 at 22:03:44 UTC, Michael Ellerman wrote:
> Older compilers think val may be used uninitialized:
> 
>   arch/powerpc/lib/sstep.c: In function 'emulate_loadstore':
>   arch/powerpc/lib/sstep.c:2758:23: error: 'val' may be used uninitialized in this function
> 
> We know better, but initialise val to 0 to avoid breaking the build.
> 
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/3b79b26101936bbdb7a5c69161c69d

cheers


More information about the Linuxppc-dev mailing list