[PATCH 3.8-rc4-nohz3] kvm: Add missing EXPORT_SYMBOL_GPL when CONFIG_KVM=m
From: Sedat Dilek
Date: Wed Jan 23 2013 - 07:44:13 EST
With CONFIG_KVM=m my build with 3.8-rc4-nohz3 breaks like this:
ERROR: "guest_enter" [arch/x86/kvm/kvm.ko] undefined!
ERROR: "guest_exit" [arch/x86/kvm/kvm.ko] undefined!
Fix this by adding the missing EXPORT_SYMBOL_GPL for guest_enter() and
guest_exit() in kernel/context_tracking.c as suggested by Frederic.
This issue was introduced with commit 8eebafe9be58 ("kvm: Prepare to
add generic guest entry/exit callbacks").
[ v2: Add reference to culprit commit. -dileks ]
[ v3: Forgot my S-o-b. -dileks ]
Signed-off-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
---
kernel/context_tracking.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
index bbb2c2c..00403e6 100644
--- a/kernel/context_tracking.c
+++ b/kernel/context_tracking.c
@@ -111,6 +111,7 @@ void guest_enter(void)
else
__guest_enter();
}
+EXPORT_SYMBOL_GPL(guest_enter);
void guest_exit(void)
{
@@ -119,6 +120,7 @@ void guest_exit(void)
else
__guest_exit();
}
+EXPORT_SYMBOL_GPL(guest_exit);
#endif
--
1.8.1.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/