Commit 74315cccd2104a953f493acca2c6b0519d6f5c6f

Authored by Laura Abbott
Committed by Joerg Roedel
1 parent 2c53b436a3

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.

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

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/linux/iommu.h
... ... @@ -19,6 +19,8 @@
19 19 #ifndef __LINUX_IOMMU_H
20 20 #define __LINUX_IOMMU_H
21 21  
  22 +#include <linux/errno.h>
  23 +
22 24 #define IOMMU_READ (1)
23 25 #define IOMMU_WRITE (2)
24 26 #define IOMMU_CACHE (4) /* DMA cache coherency */