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 <[email protected]>
> Cc: Stephen Hemminger <[email protected]>
> Cc: Alexander Graf <[email protected]>
> ---
> 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-ppc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html