lkml.org 
[lkml]   [2020]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@kernel.org>

Applied all, thanks.

\
 
 \ /
  Last update: 2020-03-04 16:26    [W:0.049 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site