Explorar o código

[SPARC32]: Fix build-warning in io-unit.c

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller %!s(int64=17) %!d(string=hai) anos
pai
achega
6ee4e28be8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/sparc/mm/io-unit.c

+ 1 - 1
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);
 	spin_lock_irqsave(&iounit->lock, flags);
 	while (sz != 0) {
 	while (sz != 0) {
 		--sz;
 		--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->dvma_length = sg->length;
 		sg = sg_next(sg);
 		sg = sg_next(sg);
 	}
 	}