Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b194aee9 authored by Randy Dunlap's avatar Randy Dunlap Committed by Rusty Russell
Browse files

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 0864b79a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -304,7 +304,7 @@ static int virtblk_probe(struct virtio_device *vdev)
	if (!err)
	if (!err)
		blk_queue_max_segment_size(vblk->disk->queue, v);
		blk_queue_max_segment_size(vblk->disk->queue, v);
	else
	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 */
	/* Host can optionally specify the block size of the device */
	err = virtio_config_val(vdev, VIRTIO_BLK_F_BLK_SIZE,
	err = virtio_config_val(vdev, VIRTIO_BLK_F_BLK_SIZE,