Message ID | 1389314596-18814-1-git-send-email-scottwood@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Il 10/01/2014 01:43, Scott Wood ha scritto: > Commit 7940876e1330671708186ac3386aa521ffb5c182 ("kvm: make local > functions static") broke KVM PPC builds due to removing (rather than > moving) the stub version of kvm_vcpu_eligible_for_directed_yield(). > > This patch reintroduces it. > > Signed-off-by: Scott Wood <scottwood@freescale.com> > Cc: Stephen Hemminger <stephen@networkplumber.org> > Cc: Alexander Graf <agraf@suse.de> > --- > virt/kvm/kvm_main.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > index 4733fa1..f896665 100644 > --- a/virt/kvm/kvm_main.c > +++ b/virt/kvm/kvm_main.c > @@ -1771,6 +1771,11 @@ static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) > > return eligible; > } > +#else > +static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) > +{ > + return true; > +} > #endif I moved the #ifdef inside the function. Thanks for the fix. Paolo > > void kvm_vcpu_on_spin(struct kvm_vcpu *me) > Applied to kvm/queue -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4733fa1..f896665 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1771,6 +1771,11 @@ static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) return eligible; } +#else +static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) +{ + return true; +} #endif void kvm_vcpu_on_spin(struct kvm_vcpu *me)
Commit 7940876e1330671708186ac3386aa521ffb5c182 ("kvm: make local functions static") broke KVM PPC builds due to removing (rather than moving) the stub version of kvm_vcpu_eligible_for_directed_yield(). This patch reintroduces it. Signed-off-by: Scott Wood <scottwood@freescale.com> Cc: Stephen Hemminger <stephen@networkplumber.org> Cc: Alexander Graf <agraf@suse.de> --- virt/kvm/kvm_main.c | 5 +++++ 1 file changed, 5 insertions(+)