summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-11-26 13:15:50 -0800
committerRusty Russell <rusty@rustcorp.com.au>2008-12-30 09:26:06 +1030
commitb194aee95622f649311f8e53418a17e210ff6827 (patch)
tree3b63716fb40b3839a88ecb17fda61f09d2f6b94a /drivers/block
parent0864b79a153342c1dfbebb12b2d099fec76c5e18 (diff)
downloadop-kernel-dev-b194aee95622f649311f8e53418a17e210ff6827.zip
op-kernel-dev-b194aee95622f649311f8e53418a17e210ff6827.tar.gz
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 <randy.dunlap@oracle.com> cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 7b9b38a..300078b 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,
OpenPOWER on IntegriCloud