浏览代码

PPC: KVM: Book E doesn't have __end_interrupts.

Fix an unresolved symbol with CONFIG_KVM_GUEST plus CONFIG_RELOCATABLE on
Book E.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Scott Wood 15 年之前
父节点
当前提交
a36be1003a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/kernel/kvm.c

+ 1 - 1
arch/powerpc/kernel/kvm.c

@@ -127,7 +127,7 @@ static void kvm_patch_ins_nop(u32 *inst)
 
 
 static void kvm_patch_ins_b(u32 *inst, int addr)
 static void kvm_patch_ins_b(u32 *inst, int addr)
 {
 {
-#ifdef CONFIG_RELOCATABLE
+#if defined(CONFIG_RELOCATABLE) && defined(CONFIG_PPC_BOOK3S)
 	/* On relocatable kernels interrupts handlers and our code
 	/* On relocatable kernels interrupts handlers and our code
 	   can be in different regions, so we don't patch them */
 	   can be in different regions, so we don't patch them */