summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c
diff options
context:
space:
mode:
authorSeth Forshee2017-09-28 15:33:39 +0200
committerMichael Ellerman2017-10-06 11:50:58 +0200
commit186b8f1587c79c2fa04bfa392fdf084443e398c1 (patch)
tree98dea770e2fbf7d46720318969aa097fe26870e8 /tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c
parentpowerpc: Add PPC_EMULATED_STATS to powernv_defconfig (diff)
downloadkernel-qcow2-linux-186b8f1587c79c2fa04bfa392fdf084443e398c1.tar.gz
kernel-qcow2-linux-186b8f1587c79c2fa04bfa392fdf084443e398c1.tar.xz
kernel-qcow2-linux-186b8f1587c79c2fa04bfa392fdf084443e398c1.zip
powerpc: Always initialize input array when calling epapr_hypercall()
Several callers to epapr_hypercall() pass an uninitialized stack allocated array for the input arguments, presumably because they have no input arguments. However this can produce errors like this one arch/powerpc/include/asm/epapr_hcalls.h:470:42: error: 'in' may be used uninitialized 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 <seth.forshee@canonical.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c')
0 files changed, 0 insertions, 0 deletions