iommu/omap: Fix pointer cast -Wpointer-to-int-cast warnings on 64 bit
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 3 Mar 2020 20:27:48 +0000 (21:27 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Mar 2020 15:24:46 +0000 (16:24 +0100)
commitf2ce16c3c15e90f8279ccda8deeb24682a4a3706
tree90a3ca2b6e2377156e6488f7b2f2726eda46c06d
parentf8788d86ab28f61f7b46eb6be375f8a726783636
iommu/omap: Fix pointer cast -Wpointer-to-int-cast warnings on 64 bit

pointers should be casted to unsigned long to avoid
-Wpointer-to-int-cast warnings when compiling on 64-bit platform (e.g.
with COMPILE_TEST):

    drivers/iommu/omap-iommu.c: In function ‘omap2_iommu_enable’:
    drivers/iommu/omap-iommu.c:170:25: warning:
        cast from pointer to integer of different size [-Wpointer-to-int-cast]
      if (!obj->iopgd || !IS_ALIGNED((u32)obj->iopgd,  SZ_16K))
                             ^

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c