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

Kronos
2004-02-02T19:59:13Z

interrupt.c:201: warning: unsigned int format, different type arg (arg 4)

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/net/tulip/interrupt.c linux-2.4/drivers/net/tulip/interrupt.c
--- linux-2.4-vanilla/drivers/net/tulip/interrupt.c Fri Jun 13 16:51:35 2003
+++ linux-2.4/drivers/net/tulip/interrupt.c Sat Jan 31 18:03:47 2004
@@ -194,10 +194,10 @@
if (tp->rx_buffers[entry].mapping !=
le32_to_cpu(tp->rx_ring[entry].buffer1)) {
printk(KERN_ERR "%s: Internal fault: The skbuff addresses "
- "do not match in tulip_rx: %08x vs. %08x %p / %p.\n",
+ "do not match in tulip_rx: %08x vs. %08Lx %p / %p.\n",
dev->name,
le32_to_cpu(tp->rx_ring[entry].buffer1),
- tp->rx_buffers[entry].mapping,
+ (dma64_addr_t)tp->rx_buffers[entry].mapping,
skb->head, temp);
}
#endif

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Non ho ancora capito se il mio cane e` maschio o femmina:
quando fa la pipi` si chiude in bagno