Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3831863ybi; Tue, 18 Jun 2019 07:12:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6DFeLSJczZ9SIjUqpOkk7YN4moNzBh+Wuknx+nNiPbJytwcnLEJsRcqZwAFk1hzdbAHWJ X-Received: by 2002:a17:902:61:: with SMTP id 88mr35195530pla.50.1560867168336; Tue, 18 Jun 2019 07:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560867168; cv=none; d=google.com; s=arc-20160816; b=sag2JFI8p2zW+rCDU66UlwJQ10Op9uW2L8BRCyUCe4XxX3Bh84vZbfC7XEpkxsvU8e rXYo58bcwV3BP4loRwU3LdkSZhukghxx0rHcg5KKu6/Rdy7ZW0BSz2pMDqWEg1uEfjn/ ieycT5Pn3tbBSQ9VP67cl5oDVxniEHO7cFCFB003ay4nSxfn50kCICsVJave/UVn8yqv CRbrZWb21DrL+zqgIJ1+Xo5NR07eXg4RHEf7iMa/nHEvv+G8H4/dtFQdmzmiPshuXCmD 5yenLWrC7GwOJJQeu6TXYEc+5zxXk8lEFEji4VicquoGxigv+xtGizbIXeRAfKfZUlyM cV4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=1fESfTIV5VTFqP6XHYw7iF6tZpiQbv2JAg6n67YVXFE=; b=BciimyFoDF7ZCjrNKwTSwKJV3gCuu3xacOqIiJyo3Z9hYe4vDhY0BBa0/BaIeTGRrx 8sLX4sta9WZUQlX5CmjUVUoSxEOPInDtHhf2eo9vTJppXyY+K054wa8UnpKKlMbHeCQW ri0SoWuySTr7HHgbQ9IFXkfBwG/bTDvBrMtFaeQULk58x4NlHs1Btd9x/M76a3QvF2ra 5dzMsUGab7nZmowFXU4XbW5BSDD9UJC8bEvyl2Uw4QSrZyIkryhn0sVqh12rgol6+ZEE CZv6VO7fHenriHevk7a6HVb4LTvdTGGM/SI7+nYv8y0NhpEjVD5UFzJWUUL6OS3JUONd Smjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si273808pgl.570.2019.06.18.07.12.33; Tue, 18 Jun 2019 07:12:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729626AbfFROKu (ORCPT + 99 others); Tue, 18 Jun 2019 10:10:50 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:18601 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725919AbfFROKu (ORCPT ); Tue, 18 Jun 2019 10:10:50 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 350FA9F6D931B838D743; Tue, 18 Jun 2019 22:10:45 +0800 (CST) Received: from localhost (10.202.226.61) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Tue, 18 Jun 2019 22:10:43 +0800 Date: Tue, 18 Jun 2019 15:10:31 +0100 From: Jonathan Cameron To: Jacob Pan CC: , LKML , Joerg Roedel , David Woodhouse , "Eric Auger" , Alex Williamson , Jean-Philippe Brucker , "Tian, Kevin" , Raj Ashok , Andriy Shevchenko Subject: Re: [PATCH v4 10/22] iommu: Fix compile error without IOMMU_API Message-ID: <20190618151031.00004bbd@huawei.com> In-Reply-To: <1560087862-57608-11-git-send-email-jacob.jun.pan@linux.intel.com> References: <1560087862-57608-1-git-send-email-jacob.jun.pan@linux.intel.com> <1560087862-57608-11-git-send-email-jacob.jun.pan@linux.intel.com> Organization: Huawei X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 9 Jun 2019 06:44:10 -0700 Jacob Pan wrote: > struct page_response_msg needs to be defined outside CONFIG_IOMMU_API. What was the error? If this is a fix for an earlier patch in this series role it in there (or put it before it). If more general we should add a fixes tag. Jonathan > > Signed-off-by: Jacob Pan > --- > include/linux/iommu.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/include/linux/iommu.h b/include/linux/iommu.h > index 7a37336..8d766a8 100644 > --- a/include/linux/iommu.h > +++ b/include/linux/iommu.h > @@ -189,8 +189,6 @@ struct iommu_sva_ops { > iommu_mm_exit_handler_t mm_exit; > }; > > -#ifdef CONFIG_IOMMU_API > - > /** > * enum page_response_code - Return status of fault handlers, telling the IOMMU > * driver how to proceed with the fault. > @@ -227,6 +225,7 @@ struct page_response_msg { > u64 iommu_data; > }; > > +#ifdef CONFIG_IOMMU_API > /** > * struct iommu_ops - iommu ops and capabilities > * @capable: check capability