lkml.org 
[lkml]   [2019]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 18/25] iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA
    Date
    From: Joerg Roedel <jroedel@suse.de>

    commit 201c1db90cd643282185a00770f12f95da330eca upstream.

    The stub function for !CONFIG_IOMMU_IOVA needs to be
    'static inline'.

    Fixes: effa467870c76 ('iommu/vt-d: Don't queue_iova() if there is no flush queue')
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    Signed-off-by: Dmitry Safonov <dima@arista.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    include/linux/iova.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/include/linux/iova.h
    +++ b/include/linux/iova.h
    @@ -235,7 +235,7 @@ static inline void init_iova_domain(stru
    {
    }

    -bool has_iova_flush_queue(struct iova_domain *iovad)
    +static inline bool has_iova_flush_queue(struct iova_domain *iovad)
    {
    return false;
    }

    \
     
     \ /
      Last update: 2019-08-02 12:09    [W:5.325 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site