diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-26 19:36:08 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-26 19:36:08 -0400 |
commit | da4689c0263ee5f4eee64e166a6bee6a68b9242e (patch) | |
tree | d2f78e72750e10d88b3a51218c13d7ff78170c4b | |
parent | d42fde70849c5ba2f00c37a0666305eb507a47b8 (diff) |
iommu/vt-d: Expose struct svm_dev_ops without CONFIG_INTEL_IOMMU_SVM
The point in providing an inline version of intel_svm_bind_mm() which
just returns -ENOSYS is that people are supposed to be able to *use* it
and just see that it fails. So we need to let them have a definition of
struct svm_dev_ops (and the flags) too.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | include/linux/intel-svm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/intel-svm.h b/include/linux/intel-svm.h index 0a48ccff24ae..3c25794042f9 100644 --- a/include/linux/intel-svm.h +++ b/include/linux/intel-svm.h | |||
@@ -16,8 +16,6 @@ | |||
16 | #ifndef __INTEL_SVM_H__ | 16 | #ifndef __INTEL_SVM_H__ |
17 | #define __INTEL_SVM_H__ | 17 | #define __INTEL_SVM_H__ |
18 | 18 | ||
19 | #ifdef CONFIG_INTEL_IOMMU_SVM | ||
20 | |||
21 | struct device; | 19 | struct device; |
22 | 20 | ||
23 | struct svm_dev_ops { | 21 | struct svm_dev_ops { |
@@ -55,6 +53,8 @@ struct svm_dev_ops { | |||
55 | */ | 53 | */ |
56 | #define SVM_FLAG_SUPERVISOR_MODE (1<<1) | 54 | #define SVM_FLAG_SUPERVISOR_MODE (1<<1) |
57 | 55 | ||
56 | #ifdef CONFIG_INTEL_IOMMU_SVM | ||
57 | |||
58 | /** | 58 | /** |
59 | * intel_svm_bind_mm() - Bind the current process to a PASID | 59 | * intel_svm_bind_mm() - Bind the current process to a PASID |
60 | * @dev: Device to be granted acccess | 60 | * @dev: Device to be granted acccess |