powerpc/kvm/booke: Fix build break due to stack frame size warning
authorScott Wood <scottwood@freescale.com>
Fri, 22 Nov 2013 21:52:29 +0000 (15:52 -0600)
committerAlexander Graf <agraf@suse.de>
Tue, 10 Dec 2013 23:12:44 +0000 (00:12 +0100)
commitf5f972102d5c12729f0a35fce266b580aaa03f66
treefa0add57e9bb137fb49ae333247d18a715d07a9e
parent3d3319b45eea26df56c53aae1a65adf74c8ab12a
powerpc/kvm/booke: Fix build break due to stack frame size warning

Commit ce11e48b7fdd256ec68b932a89b397a790566031 ("KVM: PPC: E500: Add
userspace debug stub support") added "struct thread_struct" to the
stack of kvmppc_vcpu_run().  thread_struct is 1152 bytes on my build,
compared to 48 bytes for the recently-introduced "struct debug_reg".
Use the latter instead.

This fixes the following error:

cc1: warnings being treated as errors
arch/powerpc/kvm/booke.c: In function 'kvmppc_vcpu_run':
arch/powerpc/kvm/booke.c:760:1: error: the frame size of 1424 bytes is larger than 1024 bytes
make[2]: *** [arch/powerpc/kvm/booke.o] Error 1
make[1]: *** [arch/powerpc/kvm] Error 2
make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/switch_to.h
arch/powerpc/kernel/process.c
arch/powerpc/kvm/booke.c