浏览代码

IOMMU-API: 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'

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Hannes Eder 16 年之前
父节点
当前提交
ff2c8a4167
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/base/iommu.c

+ 1 - 1
drivers/base/iommu.c

@@ -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;
 }