]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-dpaa2/eth: Fix incorrect casts
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 26 Feb 2018 16:28:06 +0000 (10:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:30:53 +0000 (17:30 +0100)
commite01f04a46509d284e68bc3d41e2dd8243c9fef3d
treedd35806231ee72ed2f7580dfd856a36386ce31a0
parent5ad437b5b9bb9923223a0de7de6951b62fc88397
staging: fsl-dpaa2/eth: Fix incorrect casts

The DPAA2 Ethernet driver incorrectly assumes virtual addresses
are always 64b long, which causes compiler errors when building
for a 32b platform.

Fix this by using explicit casts to uintptr_t where necessary.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c