From: Randy Dunlap Date: Wed, 26 Nov 2008 21:15:50 +0000 (-0800) Subject: virtio_blk: fix type warning X-Git-Tag: v2.6.29-rc1~558^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b194aee95622f649311f8e53418a17e210ff6827;p=linux-2.6-omap-h63xx.git virtio_blk: fix type warning 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 cc: Rusty Russell Signed-off-by: Rusty Russell --- diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 7b9b38a12d2..300078b02e5 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -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,