Skip to contentSkip to conversation

iommu-api: Add missing header file

PATCH Applied Laura Abbott 2 participants 2 messages Jun 8, 2011 – Jun 14, 2011 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu-api: Add missing header file

If CONFIG_IOMMU_API is not defined some functions will just return -ENODEV. Add errno.h for the definition of ENODEV.

---
 include/linux/iommu.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/iommu.h +2 -0
index 0a2ba40..9940319 100644
@@ -19,6 +19,8 @@
 #ifndef __LINUX_IOMMU_H
 #define __LINUX_IOMMU_H
 
+#include <linux/errno.h>
+
 #define IOMMU_READ	(1)
 #define IOMMU_WRITE	(2)
 #define IOMMU_CACHE	(4) /* DMA cache coherency */

--
1.7.3.3

#1 lore raw
Quoted 4 lines · Laura Abbott

If CONFIG_IOMMU_API is not defined some functions will just return -ENODEV. Add errno.h for the definition of ENODEV.

Applied, thanks.

Signature · 5 lines
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632