lkml.org 
[lkml]   [2020]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: wan: sdla: Fix cast from pointer to integer of different size
From
From: Krzysztof Kozlowski <krzk@kernel.org>
Date: Sat, 4 Jan 2020 15:31:43 +0100

> Since net_device.mem_start is unsigned long, it should not be cast to
> int right before casting to pointer. This fixes warning (compile
> testing on alpha architecture):
>
> drivers/net/wan/sdla.c: In function ‘sdla_transmit’:
> drivers/net/wan/sdla.c:711:13: warning:
> cast to pointer from integer of different size [-Wint-to-pointer-cast]
>
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

Applied.
\
 
 \ /
  Last update: 2020-01-06 22:31    [W:0.046 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site