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

From: Kronos
Date: Mon Feb 02 2004 - 15:10:09 EST



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@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
No matter what you choose, you're still a luser.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/