[Compile Regression in 2.4.25-pre8][PATCH 21/42]

Kronos
2004-02-02T19:56:22Z

idt77252.c:669: warning: unsigned int format, different type arg (arg 5)

dma_addr_t can be 64 bit long even on x86 (when CONFIG_HIGHMEM64G is
defined). Cast to dma64_addr_t in the printk.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/atm/idt77252.c linux-2.4/drivers/atm/idt77252.c
--- linux-2.4-vanilla/drivers/atm/idt77252.c Tue Nov 11 17:51:38 2003
+++ linux-2.4/drivers/atm/idt77252.c Sat Jan 31 17:58:57 2004
@@ -665,8 +665,8 @@
skb_queue_head_init(&scq->transmit);
skb_queue_head_init(&scq->pending);

- TXPRINTK("idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr %08x\n",
- scq->base, scq->next, scq->last, scq->paddr);
+ TXPRINTK("idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr %08Lx\n",
+ scq->base, scq->next, scq->last, (dma64_addr_t)scq->paddr);

return scq;
}

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Tentare e` il primo passo verso il fallimento.
Homer J. Simpson