From: xxm Date: Tue, 24 Jun 2014 02:51:07 +0000 (+0800) Subject: rockchip:iommu:fix compiling warning when iommu enabled X-Git-Tag: firefly_0821_release~5057 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=55c6e001c34a3d55ef6eab06917d5455f2271332;p=firefly-linux-kernel-4.4.55.git rockchip:iommu:fix compiling warning when iommu enabled --- diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index 07fd3bb4b045..fee03f2d9945 100755 --- a/drivers/iommu/rockchip-iommu.c +++ b/drivers/iommu/rockchip-iommu.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -1022,10 +1023,11 @@ static DEVICE_ATTR(dump_mmu_pgtable, 0644, NULL, dump_mmu_pagetbl); void dump_iommu_sysfs_init(void ) { + u32 ret; dump_mmu_object = kobject_create_and_add("rk_iommu", NULL); if (dump_mmu_object == NULL) return; - sysfs_create_file(dump_mmu_object, &dev_attr_dump_mmu_pgtable.attr); + ret = sysfs_create_file(dump_mmu_object, &dev_attr_dump_mmu_pgtable.attr); return; }