[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200304152522.GA3315@8bytes.org>
Date: Wed, 4 Mar 2020 16:25:23 +0100
From: Joerg Roedel <joro@...tes.org>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
Suman Anna <s-anna@...com>
Subject: Re: [RESEND PATCH 1/4] iommu/omap: Fix pointer cast
-Wpointer-to-int-cast warnings on 64 bit
On Tue, Mar 03, 2020 at 09:27:48PM +0100, Krzysztof Kozlowski wrote:
> 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@...nel.org>
Applied all, thanks.
Powered by blists - more mailing lists