mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> cc: Rusty Russell <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
0864b79a15
commit
b194aee956
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue