[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100531002210.GA4388@host-a-55.ustcsz.edu.cn>
Date: Mon, 31 May 2010 08:22:12 +0800
From: Junchang Wang <junchangwang@...il.com>
To: Jeff Garzik <jeff@...zik.org>
Cc: davem@...emloft.net, romieu@...zoreil.com, netdev@...r.kernel.org
Subject: Re: [Patch]8139too: remove unnecessary cast of ioread32()'s return
value
On Sun, May 30, 2010 at 01:35:51PM -0400, Jeff Garzik wrote:
>
>Have you verified this matches all architectures definition of readl()?
>
Hi Jeff,
Thanks for your question. Just browsed the kernel. ioread32() returns either
unsigned int or u32 in all arches. There is no arch that uses unsigned long
or something else.
Secondly, There's a bug if an arch returns unsigned long. What happen when
programmers invoke sizeof(ioread32()) on 64-bit platforms?
--Junchang
--
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