]> git.baikalelectronics.ru Git - kernel.git/commit
net: wan: sdla: Fix cast from pointer to integer of different size
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 4 Jan 2020 14:31:43 +0000 (15:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:30:03 +0000 (13:30 -0800)
commit8e0fa5af36ef6f4bea9c7cdaf3c5a018f9813c25
treee80d05974f90dbb82042a1a86de8c33a85547552
parent17eee482ece2710980dca8d74d011d529b9188a0
net: wan: sdla: Fix cast from pointer to integer of different size

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/sdla.c