Skip to content

Commit

Permalink
IOMMU-API: use ANSI style function declaration for 'iommu_found'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and Joerg Roedel committed Mar 5, 2009
1 parent 5f812de commit ff2c8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ff2c8a4

Please sign in to comment.