On Fri, 2017-09-01 at 02:17:14 UTC, wei.guo.si...@gmail.com wrote: > From: Simon Guo <wei.guo.si...@gmail.com> > > GCC 7 will take "r2" in clobber list as an error will it will get following > build errors for powerpc ptrace selftests even with -fno-pic option: > ptrace-tm-vsx.c: In function âtm_vsxâ: > ptrace-tm-vsx.c:42:2: error: PIC register clobbered by âr2â in âasmâ > asm __volatile__( > ^~~ > make[1]: *** [ptrace-tm-vsx] Error 1 > ptrace-tm-spd-vsx.c: In function âtm_spd_vsxâ: > ptrace-tm-spd-vsx.c:55:2: error: PIC register clobbered by âr2â in > âasmâ > asm __volatile__( > ^~~ > make[1]: *** [ptrace-tm-spd-vsx] Error 1 > ptrace-tm-spr.c: In function âtm_sprâ: > ptrace-tm-spr.c:46:2: error: PIC register clobbered by âr2â in âasmâ > asm __volatile__( > ^~~ > > This patch fix the build error by removing "r2" out of clobber list. > > Reported-by: Seth Forshee <seth.fors...@canonical.com> > Signed-off-by: Simon Guo <wei.guo.si...@gmail.com> > Tested-by: Seth Forshee <seth.fors...@canonical.com>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f36dbfe1a504b85c7b3bf89fdd9999 cheers