]> git.baikalelectronics.ru Git - kernel.git/commit
starfire: Fix dma_addr_t size test for MIPS
authorBen Hutchings <ben@decadent.org.uk>
Wed, 29 Dec 2010 04:26:17 +0000 (04:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2010 20:33:17 +0000 (12:33 -0800)
commit83f805b79af6a8eb3843072354cf0d1275e63fb0
tree776a1733dcd37a812d4108a568dfef8689236e46
parent4661f615df4425efef9cfb75814ec541783be9eb
starfire: Fix dma_addr_t size test for MIPS

Commit 6ff5d13 "starfire: use BUILD_BUG_ON for netdrv_addr_t" revealed
that the preprocessor condition used to find the size of dma_addr_t
yielded the wrong result for some architectures and configurations.
This was kluged for 64-bit PowerPC in commit 310f280 by adding yet
another case to the condition.  However, 64-bit MIPS configurations
are not detected reliably either.

This should be fixed by using CONFIG_ARCH_DMA_ADDR_T_64BIT, but that
isn't yet defined everywhere it should be.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/starfire.c