public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu-api: Add missing header file
@ 2011-06-08 21:29 Laura Abbott
  2011-06-14  9:31 ` Roedel, Joerg
  0 siblings, 1 reply; 2+ messages in thread
From: Laura Abbott @ 2011-06-08 21:29 UTC (permalink / raw)
  To: iommu, Tom Lyon, Joerg Roedel; +Cc: Laura Abbott, linux-kernel

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>
---
 include/linux/iommu.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 0a2ba40..9940319 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -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 */
--
1.7.3.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iommu-api: Add missing header file
  2011-06-08 21:29 [PATCH] iommu-api: Add missing header file Laura Abbott
@ 2011-06-14  9:31 ` Roedel, Joerg
  0 siblings, 0 replies; 2+ messages in thread
From: Roedel, Joerg @ 2011-06-14  9:31 UTC (permalink / raw)
  To: Laura Abbott
  Cc: iommu@lists.linux-foundation.org, Tom Lyon,
	linux-kernel@vger.kernel.org

On Wed, Jun 08, 2011 at 05:29:11PM -0400, Laura Abbott wrote:
> 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>

Applied, thanks.

-- 
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-14  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 21:29 [PATCH] iommu-api: Add missing header file Laura Abbott
2011-06-14  9:31 ` Roedel, Joerg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox