gianfar: Fix warnings when built on 64-bit
authorScott Wood <scottwood@freescale.com>
Wed, 29 Jul 2015 13:13:06 +0000 (16:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 05:57:24 +0000 (22:57 -0700)
commitb4b67f269d28c70174e11b7af7fbdb81124d220c
tree44d946960b6b3a4bf4495542644779415bc87449
parent97493e6a4b527a9f3504908fdd0531b7036b9157
gianfar: Fix warnings when built on 64-bit

As part of defconfig consolidation using fragments, we'd like to be
able to have the same drivers enabled on 32-bit and 64-bit.  Gianfar
happens to only exist on 32-bit systems, and when building the
resulting 64-bit kernel warnings were produced.

A couple of the warnings are trivial, but the rfbptr code has deeper
issues.  It uses the virtual address as the DMA address, which again,
happens to work in the environments where this driver is currently
used, but is not the right thing to do.

Fixes: 45b679c9a3cc ("gianfar: Implement PAUSE frame generation
support")
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h