iommu: Include linux/err.h
PATCH 1/1 iommu: Include linux/err.h
The linux/iommu.h header uses ERR_PTR defined
in linux/err.h but doesn't include it.
Reviewed-by Alex Williamson <[email protected]>
Signed-off-by Wang YanQing <[email protected]>
---
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(+)
include/linux/iommu.h +1 -0
@@ -20,6 +20,7 @@#define __LINUX_IOMMU_H#include <linux/errno.h> +#include <linux/err.h> #include <linux/types.h> #define IOMMU_READ (1)
Signature · 1 line
1.7.12.4.dirty
Quoted 6 lines · Wang YanQing
The
linux/iommu.hheader usesERR_PTRdefined
inlinux/err.hbut doesn't include it.Reviewed-by Alex Williamson <[email protected]>Signed-off-by Wang YanQing <[email protected]>
Applied to core branch, thanks.