Commit 74315ccc authored by Laura Abbott's avatar Laura Abbott Committed by Joerg Roedel

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: default avatarLaura Abbott <lauraa@codeaurora.org>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 2c53b436
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef __LINUX_IOMMU_H #ifndef __LINUX_IOMMU_H
#define __LINUX_IOMMU_H #define __LINUX_IOMMU_H
#include <linux/errno.h>
#define IOMMU_READ (1) #define IOMMU_READ (1)
#define IOMMU_WRITE (2) #define IOMMU_WRITE (2)
#define IOMMU_CACHE (4) /* DMA cache coherency */ #define IOMMU_CACHE (4) /* DMA cache coherency */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment