OSDN Git Service

powerpc/kvm: Fix ppc64_defconfig + PPC_POWERNV=n build error
authorShreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Thu, 16 Apr 2015 10:58:09 +0000 (16:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Apr 2015 01:57:36 +0000 (11:57 +1000)
commita7e73e711e48e138a25265c156cca9a1ed109b50
treecfc02ac0bef32c9678a036cacbd0f152733ac008
parent7d6e7f7ffaba4e013c7a0589140431799bc17985
powerpc/kvm: Fix ppc64_defconfig + PPC_POWERNV=n build error

kvm_no_guest() calls power7_wakeup_loss() to put the thread into the
deepest supported idle state. power7_wakeup_loss() is defined in
arch/powerpc/kernel/idle_power7.S, which is compiled only when
PPC_P7_NAP=y.

And PPC_P7_NAP is selected when PPC_POWERNV=y.

Hence in cases where PPC_POWERNV=n and KVM_BOOK3S_64_HV=y we see the
following error:

  arch/powerpc/kvm/built-in.o: In function `kvm_no_guest':
  arch/powerpc/kvm/book3s_hv_rmhandlers.o:(.text+0x42c): undefined reference to `power7_wakeup_loss'

Fix this by adding PPC_POWERNV as a dependency for KVM_BOOK3S_64_HV.

Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kvm/Kconfig