lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 141/329] kvm: fix warning for CONFIG_HAVE_KVM_EVENTFD builds
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Sebastian Ott <sebott@linux.vnet.ibm.com>

    [ Upstream commit 076467490b8176eb96eddc548a14d4135c7b5852 ]

    Move the kvm_arch_irq_routing_update() prototype outside of
    ifdef CONFIG_HAVE_KVM_EVENTFD guards to fix the following sparse warning:

    arch/s390/kvm/../../../virt/kvm/irqchip.c:171:28: warning: symbol 'kvm_arch_irq_routing_update' was not declared. Should it be static?

    Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
    Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    include/linux/kvm_host.h | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/include/linux/kvm_host.h
    +++ b/include/linux/kvm_host.h
    @@ -1070,7 +1070,6 @@ static inline void kvm_irq_routing_updat
    {
    }
    #endif
    -void kvm_arch_irq_routing_update(struct kvm *kvm);

    static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args)
    {
    @@ -1079,6 +1078,8 @@ static inline int kvm_ioeventfd(struct k

    #endif /* CONFIG_HAVE_KVM_EVENTFD */

    +void kvm_arch_irq_routing_update(struct kvm *kvm);
    +
    static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu)
    {
    /*

    \
     
     \ /
      Last update: 2018-05-28 16:34    [W:3.524 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site