From: David S. Miller Date: Sat, 27 Oct 2007 07:54:14 +0000 (-0700) Subject: [SPARC32]: Fix build-warning in io-unit.c X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6ee4e28be80add86a64908472e4b7ab01dab33d9;p=deliverable%2Flinux.git [SPARC32]: Fix build-warning in io-unit.c Signed-off-by: David S. Miller --- diff --git a/arch/sparc/mm/io-unit.c b/arch/sparc/mm/io-unit.c index 1666087c5b80..b86dfce8eee4 100644 --- a/arch/sparc/mm/io-unit.c +++ b/arch/sparc/mm/io-unit.c @@ -144,7 +144,7 @@ static void iounit_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus spin_lock_irqsave(&iounit->lock, flags); while (sz != 0) { --sz; - sg->dvma_address = iounit_get_area(iounit, sg_virt(sg), sg->length); + sg->dvma_address = iounit_get_area(iounit, (unsigned long) sg_virt(sg), sg->length); sg->dvma_length = sg->length; sg = sg_next(sg); }