OSDN Git Service

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)
commit3e659a82c45076e354d20db4b0776e716c6e7fe3
tree1b1a00d8262e366564d7d9604bb0f78090f065cb
parentfb73ed5ef7e1f3b561dae517b9efdf58c153636b
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