]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fix build warnings on 32-bit
authorEdward Cree <ecree@solarflare.com>
Thu, 20 Aug 2020 10:47:19 +0000 (11:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 19:00:16 +0000 (12:00 -0700)
commit8391a3314b195ac765853f05ef6728632bce0cd6
tree1b1a00d8262e366564d7d9604bb0f78090f065cb
parent278651978c3828266e69456a7a14e72bc532c894
sfc: fix build warnings on 32-bit

Truncation of DMA_BIT_MASK to 32-bit dma_addr_t is semantically safe,
 but the compiler was warning because it was happening implicitly.
Insert explicit casts to suppress the warnings.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef100.c