Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2227125ybi; Sun, 9 Jun 2019 06:45:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1gHh8xsL+GXQ+okCagDOH9XgqhKZaAKBR6RFFi0yQodrHFk4wMTURjTlAyWei/xh+U1Vp X-Received: by 2002:aa7:8b12:: with SMTP id f18mr68652230pfd.178.1560087933108; Sun, 09 Jun 2019 06:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560087933; cv=none; d=google.com; s=arc-20160816; b=ioRWIFzd8r2iFD6IIE6O8NHOwpNqvyE/nn5iTmy0TYvlQsBowesvmR6GPXkx9SAWo0 uCkHARqXRAcJmZuSUGTXoq5xyoUQPVttsh09meAL4bOWytxIgPslLuqIC5U+jqUc19l7 /+KJLPrBO4z5sr8VvEo6PcPY3JlJMI6ABljhspQ13cMAuoOryiUDs6JcrVz4wlG7wfWW 79iIJHDtxFBw1RnpBrIIf0+OETyIGYF1rQso/1ZWobck9cpsPAEF9UwvsVwOr2NwpudX GNeYu6TQ1oLBzsTt2uDar/1bulo0qN9SpHQR9gFvT3LSiyPdmEoV8Etc+TWIi2qRywPA CbHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=kre4DAtJMH0XIe1ESFawEX3ZCEzK3h9RuWlBXFZS2RA=; b=f60lV5obKmSJGZxIMN+8++Atgskmch5sGA048xB0WD1VvOSq9pQbqj1lxJT1BZ1A1e 5ZFPyXp29GvN/RVRP/XYmKI0wpYpjKNLhGrgycbQkcn4Fo/HaKpbVE9gXmdISyRhG+kW U9ODtyZqzgzhK44Iz7dGGRmnQlIwEHLYKy0ce+PmKalJKf10EczrnoZu61ZKjIPeHUJC RZCxrPlbQ+j06/tShNKLPDjaoY0znqX4O6AGCbhyBRvEaAH5HF1cKhx9fXEmDyVCeKa6 ZRgU5Dzx7S5eyyK2dArt/0ADkOtnJXXwqtCqRdshLr2GAxqXlILAVwayxjtC/1nIzMX4 rwAA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b132si8034711pfb.267.2019.06.09.06.45.17; Sun, 09 Jun 2019 06:45:33 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729292AbfFINmX (ORCPT + 99 others); Sun, 9 Jun 2019 09:42:23 -0400 Received: from mga11.intel.com ([192.55.52.93]:32103 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728920AbfFINlS (ORCPT ); Sun, 9 Jun 2019 09:41:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jun 2019 06:41:18 -0700 X-ExtLoop1: 1 Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga003.jf.intel.com with ESMTP; 09 Jun 2019 06:41:18 -0700 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Eric Auger , Alex Williamson , Jean-Philippe Brucker Cc: "Yi Liu" , "Tian, Kevin" , Raj Ashok , "Christoph Hellwig" , "Lu Baolu" , Andriy Shevchenko , Jacob Pan Subject: [PATCH v4 10/22] iommu: Fix compile error without IOMMU_API Date: Sun, 9 Jun 2019 06:44:10 -0700 Message-Id: <1560087862-57608-11-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560087862-57608-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1560087862-57608-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct page_response_msg needs to be defined outside CONFIG_IOMMU_API. 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 -- 2.7.4