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

Kronos
2004-02-02T20:06:47Z

scsi_merge.c:104: warning: long unsigned int format, different type arg (arg 4)

page_to_phys returns a u64 if CONFIG_HIGHMEM64G is defined.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/scsi/scsi_merge.c linux-2.4/drivers/scsi/scsi_merge.c
--- linux-2.4-vanilla/drivers/scsi/scsi_merge.c Fri Nov 29 00:53:14 2002
+++ linux-2.4/drivers/scsi/scsi_merge.c Sat Jan 31 19:03:49 2004
@@ -98,10 +98,10 @@
printk("Flags %d %d\n", use_clustering, dma_host);
for (bh = req->bh; bh->b_reqnext != NULL; bh = bh->b_reqnext)
{
- printk("Segment 0x%p, blocks %d, addr 0x%lx\n",
+ printk("Segment 0x%p, blocks %d, addr 0x%Lx\n",
bh,
bh->b_size >> 9,
- bh_phys(bh) - 1);
+ (u64)bh_phys(bh) - 1);
}
panic("Ththththaats all folks. Too dangerous to continue.\n");
}

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
No matter what you choose, you're still a luser.