Files
linux/drivers/net/ethernet/arc
Alexey Brodkin a4a1139b24 arc_emac: fix compile-time errors & warnings on PPC64
As reported by "kbuild test robot" there were some errors and warnings
on attempt to build kernel with "make ARCH=powerpc allmodconfig".

And this patch addresses both errors and warnings.
Below is a list of introduced changes:
1. Fix compile-time errors (misspellings in "dma_unmap_single") on PPC.
2. Use DMA address instead of "skb->data" as a pointer to data buffer.
This fixed warnings on pointer to int conversion on 64-bit systems.
3. Re-implemented initial allocation of Rx buffers in "arc_emac_open" in
the same way they're re-allocated during operation (receiving packets).
So once again DMA address could be used instead of "skb->data".
4. Explicitly use EMAC_BUFFER_SIZE for Rx buffers allocation.

Signed-off-by: Alexey Brodkin <[email protected]>

Cc: [email protected]
Cc: Andy Shevchenko <[email protected]>
Cc: Francois Romieu <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: Mischa Jonker <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Florian Fainelli <[email protected]>
Cc: David Laight <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-06-26 01:35:44 -07:00
..
…
…
…