]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iommu-api: Add missing header file
authorLaura Abbott <lauraa@codeaurora.org>
Wed, 8 Jun 2011 21:29:11 +0000 (17:29 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 14 Jun 2011 09:30:22 +0000 (11:30 +0200)
If CONFIG_IOMMU_API is not defined some functions will just
return -ENODEV. Add errno.h for the definition of ENODEV.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
include/linux/iommu.h

index 0a2ba4098996de9ef07ed8cdf11bd11b90901548..9940319d6f9d3ab0d1442a5fa31a7db9be6dafa3 100644 (file)
@@ -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 */