]> 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)
commit0254939cd45274853e3066295c25f096cf4ac417
tree44d946960b6b3a4bf4495542644779415bc87449
parent6dbfa848e150fc8eb8817668a035c0f2f2afb9cb
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: dc63a8647519 ("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