[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTikG_N9D6s2g_HvjFFmVLf4pJDCkxuwBdLUgS4Kz@mail.gmail.com>
Date: Mon, 19 Jul 2010 16:23:58 +0800
From: August <august.seu@...il.com>
To: netdev@...r.kernel.org
Subject: RTL8180 : improper usage of dma_addr_t
linux-kernel-version : 2.6.34
drivers/net/wireless/rtl818x/rtl8180_dev.c
__LINE__ : 500
cpu_to_le32((u32)dma + ((i + 1) % entries) * sizeof(*ring));
Although in the x86 infrastruct, the value of dma_addr == line addr,
it is inproper usage here.
suggestion:
cpu_to_le32((u32)(&priv[0]) + ((i + 1) % entries) * sizeof(*ring));
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists