* [PATCH] starfire: clean up dma_addr_t size test
@ 2011-04-01 15:27 FUJITA Tomonori
2011-04-02 3:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: FUJITA Tomonori @ 2011-04-01 15:27 UTC (permalink / raw)
To: netdev; +Cc: davem
Only compile tested.
=
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: [PATCH] starfire: clean up dma_addr_t size test
Now we have CONFIG_ARCH_DMA_ADDR_T_64BIT. We can fix the hacky
dma_addr_t size test cleanly.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
drivers/net/starfire.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c
index a4f2bd5..36045f3 100644
--- a/drivers/net/starfire.c
+++ b/drivers/net/starfire.c
@@ -144,11 +144,7 @@ static int full_duplex[MAX_UNITS] = {0, };
/* Time in jiffies before concluding the transmitter is hung. */
#define TX_TIMEOUT (2 * HZ)
-/*
- * This SUCKS.
- * We need a much better method to determine if dma_addr_t is 64-bit.
- */
-#if (defined(__i386__) && defined(CONFIG_HIGHMEM64G)) || defined(__x86_64__) || defined (__ia64__) || defined(__alpha__) || (defined(CONFIG_MIPS) && ((defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) || defined(CONFIG_64BIT))) || (defined(__powerpc64__) || defined(CONFIG_PHYS_64BIT))
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
/* 64-bit dma_addr_t */
#define ADDR_64BITS /* This chip uses 64 bit addresses. */
#define netdrv_addr_t __le64
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] starfire: clean up dma_addr_t size test
2011-04-01 15:27 [PATCH] starfire: clean up dma_addr_t size test FUJITA Tomonori
@ 2011-04-02 3:10 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-04-02 3:10 UTC (permalink / raw)
To: fujita.tomonori; +Cc: netdev
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Date: Sat, 2 Apr 2011 00:27:51 +0900
> Now we have CONFIG_ARCH_DMA_ADDR_T_64BIT. We can fix the hacky
> dma_addr_t size test cleanly.
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Applied, thank you for remembering to do this!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-02 3:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 15:27 [PATCH] starfire: clean up dma_addr_t size test FUJITA Tomonori
2011-04-02 3:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).