powerpc/kvm: Fix build failure with HV KVM and CBE
authorAlexander Graf <agraf@suse.de>
Tue, 13 Sep 2011 04:15:31 +0000 (04:15 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Nov 2011 04:34:04 +0000 (15:34 +1100)
commit5ccf55dd8177295813b68780f0a3c85e47306be1
tree400a9a8bb2ad79f7697206f4c6a22d263c37a624
parentf81f5e14de1203b9389aad383aa3f7b2a221efdd
powerpc/kvm: Fix build failure with HV KVM and CBE

When running with HV KVM and CBE config options enabled, I get
build failures like the following:

  arch/powerpc/kernel/head_64.o: In function `cbe_system_error_hv':
  (.text+0x1228): undefined reference to `do_kvm_0x1202'
  arch/powerpc/kernel/head_64.o: In function `cbe_maintenance_hv':
  (.text+0x1628): undefined reference to `do_kvm_0x1602'
  arch/powerpc/kernel/head_64.o: In function `cbe_thermal_hv':
  (.text+0x1828): undefined reference to `do_kvm_0x1802'

This is because we jump to a KVM handler when HV is enabled, but we
only generate the handler with PR KVM mode.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64s.S