lkml.org 
[lkml]   [2019]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 10/22] iommu: Fix compile error without IOMMU_API
Date
struct page_response_msg needs to be defined outside CONFIG_IOMMU_API.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
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
\
 
 \ /
  Last update: 2019-06-09 15:43    [W:0.322 / U:3.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site