[PATCH] selftests/powerpc: Use snprintf to construct DSCR sysfs interface paths

2017-09-28 Thread Seth Forshee
skip any paths which are too long for the filename buffer. Signed-off-by: Seth Forshee --- tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c b/tools/testing

[PATCH] powerpc: Always initialize input array when calling epapr_hypercall()

2017-09-28 Thread Seth Forshee
ed in this function [-Werror=maybe-uninitialized] unsigned long register r3 asm("r3") = in[0]; ~~^~~ Fix callers to this function to always zero-initialize the input arguments array to prevent this. Signed-off-by: Seth Forshee --- arch

Re: Build failures in powerpc ptrace selftests

2017-08-31 Thread Seth Forshee
On Thu, Aug 31, 2017 at 01:41:47AM +0800, Simon Guo wrote: > Hi Seth, > On Wed, Aug 30, 2017 at 08:05:25AM -0500, Seth Forshee wrote: > > With gcc 7 from Ubuntu 17.10 I'm getting the follwing error building the > > ptrace selftests for powerpc: > > > > p

Build failures in powerpc ptrace selftests

2017-08-30 Thread Seth Forshee
With gcc 7 from Ubuntu 17.10 I'm getting the follwing error building the ptrace selftests for powerpc: 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-sp