Skip to contentSkip to conversation

virtio_blk: fix type warning

PATCH Applied Randy Dunlap 2 participants 2 messages Nov 26, 2008 – Nov 27, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio_blk: fix type warning

From: Randy Dunlap <[email protected]>

Fix parameter type warning:

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

---
 drivers/block/virtio_blk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/virtio_blk.c +1 -1
@@ -304,7 +304,7 @@ static int virtblk_probe(struct virtio_d
 	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,
#1 lore raw
Quoted 6 lines · On Thursday 27 November 2008 07:45:50 Randy Dunlap wrote:

From: Randy Dunlap <[email protected]>

Fix parameter type warning:

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

Thanks, applied.

Rusty.