]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
virtio_blk: fix type warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 26 Nov 2008 21:15:50 +0000 (13:15 -0800)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Dec 2008 22:56:06 +0000 (09:26 +1030)
Fix parameter type warning:

linux-next-20081126/drivers/block/virtio_blk.c:307: warning: large integer implicitly truncated to unsigned type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c

index 7b9b38a12d257d40f3842f8ee4d6e2d3b6cdecc9..300078b02e5d98d687596d3cb952870042211bae 100644 (file)
@@ -304,7 +304,7 @@ static int virtblk_probe(struct virtio_device *vdev)
        if (!err)
                blk_queue_max_segment_size(vblk->disk->queue, v);
        else
-               blk_queue_max_segment_size(vblk->disk->queue, -1UL);
+               blk_queue_max_segment_size(vblk->disk->queue, -1U);
 
        /* Host can optionally specify the block size of the device */
        err = virtio_config_val(vdev, VIRTIO_BLK_F_BLK_SIZE,