The linux/iommu.h header uses ERR_PTR defined
in linux/err.h but doesn't include it.

Cc:j...@8bytes.org
Reviewed-by: Alex Williamson <alex.william...@redhat.com>
Signed-off-by: Wang YanQing <udkni...@gmail.com>
---
 This patch has been in LKML for more than 2 months,
 I even forget it, but the compile error when I compile
 a kernel module for 3.8.8 failed due without CONFIG_IOMMU_API
 in my .config remind me.
 
 I really hope someone accept it.

 Thanks. 
 include/linux/iommu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index f3b99e1..f4a49a6 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -20,6 +20,7 @@
 #define __LINUX_IOMMU_H
 
 #include <linux/errno.h>
+#include <linux/err.h>
 #include <linux/types.h>
 
 #define IOMMU_READ     (1)
-- 
1.7.12.4.dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to