[PATCH v2] powerpc/sstep: Fix array out of bound warning

Michael Ellerman patch-notifications at ellerman.id.au
Wed Feb 3 22:46:19 AEDT 2021


On Fri, 29 Jan 2021 12:47:45 +0530, Ravi Bangoria wrote:
> Compiling kernel with -Warray-bounds throws below warning:
> 
>   In function 'emulate_vsx_store':
>   warning: array subscript is above array bounds [-Warray-bounds]
>   buf.d[2] = byterev_8(reg->d[1]);
>   ~~~~~^~~
>   buf.d[3] = byterev_8(reg->d[0]);
>   ~~~~~^~~
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/sstep: Fix array out of bound warning
      https://git.kernel.org/powerpc/c/344717a14cd7272f88346022a77742323346299e

cheers


More information about the Linuxppc-dev mailing list