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 800FCC433FF for ; Fri, 2 Aug 2019 09:54:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CD5920665 for ; Fri, 2 Aug 2019 09:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564739679; bh=A6SMS4Td+ReUT+zVlgBmklIZhFxP34I6rbFV+0gXWoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=W7LUNVw//emigEttVDodma74ni0I4BBlMxGDy+zv7FmM0Q8E/gbCY/FmCTNTenMKf Kbn32z/vlbQhuu5Cv51wrCIwfc1kpazOwv71pJMm9ho4aZHDHi3+CmGWkVXO+MNjtV uiW+IpINV+rRR4ddipDrhVsuCqJ6GPykpeAde5/Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406230AbfHBJyi (ORCPT ); Fri, 2 Aug 2019 05:54:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:60676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406399AbfHBJyO (ORCPT ); Fri, 2 Aug 2019 05:54:14 -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 8B19D2064A; Fri, 2 Aug 2019 09:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564739653; bh=A6SMS4Td+ReUT+zVlgBmklIZhFxP34I6rbFV+0gXWoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fC9DsP7+W/wF6qWlMRL2MlcxL6SAk6wBj0T8TY/4ead+s95A5ZCy7GafJGHg2nbbt hY574BlAeuwkIGg2ac9kYTF9l2Fy/kCkje42HIlI4/DM97pdMwUVJ2Sx2OjsFdWAVY iZONX7mI68CkqxzisxtgYQJdt1XVeNE1d5SUGzzg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel , Dmitry Safonov Subject: [PATCH 4.14 18/25] iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA Date: Fri, 2 Aug 2019 11:39:50 +0200 Message-Id: <20190802092105.413174400@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092058.428079740@linuxfoundation.org> References: <20190802092058.428079740@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: Dmitry Safonov 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 @@ -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; }