KVM: PPC: Book3S HV: Fix build error in book3s_hv.c
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 11 May 2016 01:15:55 +0000 (11:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 11 May 2016 11:19:10 +0000 (21:19 +1000)
commit07f8ab255fcc0bce1fabc8fb35ace4f0f5d2ac67
tree412003d105ad2df50248a8a58363621612104b5a
parenteb8b0560160d8363bc40ca05a75ef144cebaae72
KVM: PPC: Book3S HV: Fix build error in book3s_hv.c

When CONFIG_KVM_XICS is enabled, CPU_UP_PREPARE and other macros for
CPU states in linux/cpu.h are needed by arch/powerpc/kvm/book3s_hv.c.
Otherwise, build error as below is seen:

   gwshan@gwshan:~/sandbox/l$ make arch/powerpc/kvm/book3s_hv.o
    :
   CC      arch/powerpc/kvm/book3s_hv.o
   arch/powerpc/kvm/book3s_hv.c: In function ‘kvmppc_cpu_notify’:
   arch/powerpc/kvm/book3s_hv.c:3072:7: error: ‘CPU_UP_PREPARE’ \
   undeclared (first use in this function)

This fixes the issue introduced by commit <6f3bb80944> ("KVM: PPC:
Book3S HV: kvmppc_host_rm_ops - handle offlining CPUs").

Fixes: 6f3bb8094414
Cc: stable@vger.kernel.org # v4.6
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kvm/book3s_hv.c