]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd5ad8677f4249e0e766078fe359eda2b9706b1d
tree44d946960b6b3a4bf4495542644779415bc87449
parent197ae629206ce3a0943f987a9d019ee9a0ea2a0f
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: 08106a6fef54 ("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