From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48631C433FF for ; Mon, 29 Jul 2019 19:56:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18D742054F for ; Mon, 29 Jul 2019 19:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564430182; bh=QokPj/8tokDdsipMSdBPf+71ZL0m1+BCD/04tFVb1S8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=lMaDLAqFmFNgvIcF0c5U1jyC98y+06kMKfDmy2d+9U9KSoitmSHAyIGW9/kip0JOC +/ilpwWLjzEyIexLFr4Z98dsGOqA3Y/CMGj2Ag3Uol9LxyJtEVioTsE8Pz2z3n7cp3 BDSAdYN/BcqTYl0IGmWutM9dQ/qZ7TqmqoRW1Byg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391062AbfG2T4U (ORCPT ); Mon, 29 Jul 2019 15:56:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:49172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404323AbfG2T4Q (ORCPT ); Mon, 29 Jul 2019 15:56:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 213F0204EC; Mon, 29 Jul 2019 19:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564430175; bh=QokPj/8tokDdsipMSdBPf+71ZL0m1+BCD/04tFVb1S8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hQJrTs6Voxio6Wj85KZGe+suOLiesExpGV8tKZ9tdr91RFdoQg9WWGz5x16oJkxck vRuLqg9bt0Vfcg6iSZjfQqBxykljzzvbZN+oJhkzVWAfQvbsk6Q8Et8Nw9RGB7LTq9 Li3XIk8SzsHp6AoKo2VNcWPlJX4LsAlS4ta51ZmE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel Subject: [PATCH 5.2 204/215] iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA Date: Mon, 29 Jul 2019 21:23:20 +0200 Message-Id: <20190729190815.448954818@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel 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 Signed-off-by: Greg Kroah-Hartman --- include/linux/iova.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/iova.h +++ b/include/linux/iova.h @@ -236,7 +236,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; }