trem 1dad939ddb ipg.c doesn't compile with with CONFIG_HIGHMEM64G
I've tried to compile 2.6.23-rc8-mm2, but it fails on ipg.c with the
error : ERROR: "__udivdi3" [drivers/net/ipg.ko] undefined!

I've instigated a bit, and I've found this code in ipg.c :

static void ipg_nic_txfree(struct net_device *dev)
{
       struct ipg_nic_private *sp = netdev_priv(dev);
       void __iomem *ioaddr = sp->ioaddr;
       const unsigned int curr = ipg_r32(TFD_LIST_PTR_0) -
               (sp->txd_map / sizeof(struct ipg_tx)) - 1;
       unsigned int released, pending;

sp->txd_map is an u64
because :
	dma_addr_t txd_map;

And in asm-i386/types.h, I see :
#ifdef CONFIG_HIGHMEM64G
typedef u64 dma_addr_t;
#else
typedef u32 dma_addr_t;
#endif
I my config, I use CONFIG_HIGHMEM64G

sizeof(struct ipg_tx) is an u32
So the div failed on i386 because of u64 / u32.

[akpm@linux-foundation.org: cleanups]
Cc: Sorbica Shieh <sorbica@icplus.com.tw>
Cc: Jesse Huang <jesse@icplus.com.tw>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-10-10 16:54:28 -07:00
..
2007-10-10 16:53:49 -07:00
2007-10-10 16:54:05 -07:00
2007-10-10 16:54:04 -07:00
2007-10-10 16:51:52 -07:00
2007-10-10 16:51:52 -07:00
2007-10-10 16:52:01 -07:00
2007-10-10 16:51:52 -07:00
2007-10-10 16:54:03 -07:00
2007-10-10 16:54:18 -07:00
2007-10-10 16:52:06 -07:00
2007-10-10 16:51:57 -07:00
2007-07-10 12:41:08 -04:00
2007-10-10 16:51:58 -07:00
2007-10-10 16:53:56 -07:00
2007-10-10 16:51:43 -07:00
2007-10-10 16:54:07 -07:00
2007-10-10 16:54:07 -07:00
2007-10-10 16:54:08 -07:00
2007-10-10 16:54:07 -07:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2007-07-30 15:48:16 -04:00
2007-07-30 15:48:16 -04:00
2007-10-10 16:50:46 -07:00
2007-10-10 16:51:33 -07:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:52:01 -07:00
2007-10-10 16:52:03 -07:00
2007-10-10 16:50:54 -07:00
2007-10-10 16:51:13 -07:00
2007-07-16 15:02:47 +02:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:34 -07:00
2007-10-10 16:51:34 -07:00
2007-10-10 16:51:34 -07:00
2007-10-10 16:51:13 -07:00
2007-08-03 16:07:58 +08:00
2007-10-10 16:52:04 -07:00
2007-10-10 16:53:49 -07:00
2007-10-10 16:53:49 -07:00