]> git.baikalelectronics.ru Git - kernel.git/commit
net: ni65: Avoid typecast of pointer to u32
authorGuenter Roeck <linux@roeck-us.net>
Thu, 9 Sep 2021 04:49:53 +0000 (21:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Sep 2021 10:21:19 +0000 (11:21 +0100)
commit92f4f379e1bc9efc1ee52fe30723fc10512b6560
tree6cbf61c52cabc40f7f0d5cbbb32df097c3e34a61
parent3904a63a638b8606b92cd13473f14c77353dc3f5
net: ni65: Avoid typecast of pointer to u32

Building alpha:allmodconfig results in the following error.

drivers/net/ethernet/amd/ni65.c: In function 'ni65_stop_start':
drivers/net/ethernet/amd/ni65.c:751:37: error:
cast from pointer to integer of different size
buffer[i] = (u32) isa_bus_to_virt(tmdp->u.buffer);

'buffer[]' is declared as unsigned long, so replace the typecast to u32
with a typecast to unsigned long to fix the problem.

Cc: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/ni65.c