V4L/DVB (10957a): cx231xx: Fix compilation breakage
[linux-2.6] / drivers / block / virtio_blk.c
index 7b9b38a..5d34764 100644 (file)
@@ -249,6 +249,8 @@ static int virtblk_probe(struct virtio_device *vdev)
                goto out_put_disk;
        }
 
+       queue_flag_set_unlocked(QUEUE_FLAG_VIRT, vblk->disk->queue);
+
        if (index < 26) {
                sprintf(vblk->disk->disk_name, "vd%c", 'a' + index % 26);
        } else if (index < (26 + 1) * 26) {
@@ -304,7 +306,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,