Skip to contentSkip to conversation

IOMMU: use ANSI style function declaration for 'iommu_found'

PATCH Applied Hannes Eder 2 participants 2 messages Mar 2, 2009 – Mar 5, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IOMMU: use ANSI style function declaration for 'iommu_found'

Fix this sparse warning:
drivers/base/iommu.c:34:18: warning: non-ANSI function declaration of function 'iommu_found'

---
 drivers/base/iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/iommu.c +1 -1
index 5e039d4..c2d1eed 100644
@@ -31,7 +31,7 @@ void register_iommu(struct iommu_ops *ops)
 	iommu_ops = ops;
 }
 
-bool iommu_found()
+bool iommu_found(void)
 {
 	return iommu_ops != NULL;
 }
Applied
#1 lore raw
Quoted 13 lines · Hannes Eder

Fix this sparse warning:
drivers/base/iommu.c:34:18: warning: non-ANSI function declaration of function 'iommu_found'

---
 drivers/base/iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/iommu.c +0 -0
index 5e039d4..c2d1eed 100644

drivers/base/iommu.c void register_iommu(struct iommu_ops *ops) · line 37

Quoted 8 lines
drivers/base/iommu.c +1 -1
@@ -31,7 +31,7 @@ void register_iommu(struct iommu_ops *ops)
 	iommu_ops = ops;
 }
 
-bool iommu_found()
+bool iommu_found(void)
 {
 	return iommu_ops != NULL;
 }

Applied, thanks.

Joerg

Signature · 6 lines
           | Advanced Micro Devices GmbH
 Operating | Karl-Hammerschmidt-Str. 34, 85609 Dornach bei München
 System    | 
 Research  | Geschäftsführer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
 Center    | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
           | Registergericht München, HRB Nr. 43632