From: Hollis Blanchard Date: Mon, 28 Jan 2008 23:42:34 +0000 (-0600) Subject: KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31bb117eb48f2629e030ca547ca89a1c34150183;p=linux-beck.git KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier This allows kvm_host.h to be #included even when struct preempt_notifier is undefined. This is needed to build ppc asm-offsets.h. Signed-off-by: Hollis Blanchard Signed-off-by: Avi Kivity --- diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 928b0d59e9ba..b90ca368dcf6 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -67,7 +67,9 @@ void kvm_io_bus_register_dev(struct kvm_io_bus *bus, struct kvm_vcpu { struct kvm *kvm; +#ifdef CONFIG_PREEMPT_NOTIFIERS struct preempt_notifier preempt_notifier; +#endif int vcpu_id; struct mutex mutex; int cpu;