[PATCH] powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning

Michael Ellerman mpe at ellerman.id.au
Tue Feb 19 12:02:37 AEDT 2019


Meelis Roos <mroos at linux.ee> writes:

>> Rather than relying on that we can pass an explict end_pos based on
>> the sizeof(vrsave). The result should be exactly the same but it's
>> more obviously not over-reading/writing the stack and it avoids the
>> compiler warning.
>
> It works on my PowerMac G4 with Debian-ports unstable with gcc 8.

Thanks.

cheers


More information about the Linuxppc-dev mailing list