[PATCH 07/58] lib/iommu-helper.c: Include <linux/iommu-helper.h> for function prototypes

From: Josh Triplett
Date: Mon Nov 19 2012 - 00:28:59 EST


C files should include the header files that prototype their functions.
This keeps the types in sync, and eliminates warnings from GCC
(-Wmissing-prototypes) and Sparse (-Wdecl).

lib/iommu-helper.c:9:5: warning: no previous prototype for âiommu_is_span_boundaryâ [-Wmissing-prototypes]
lib/iommu-helper.c:19:15: warning: no previous prototype for âiommu_area_allocâ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
lib/iommu-helper.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c
index c27e269..41d35fb 100644
--- a/lib/iommu-helper.c
+++ b/lib/iommu-helper.c
@@ -5,6 +5,7 @@
#include <linux/export.h>
#include <linux/bitmap.h>
#include <linux/bug.h>
+#include <linux/iommu-helper.h>

int iommu_is_span_boundary(unsigned int index, unsigned int nr,
unsigned long shift,
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/