lkml.org 
[lkml]   [2008]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] virtio_blk: fix type warning
From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
drivers/block/virtio_blk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20081126.orig/drivers/block/virtio_blk.c
+++ linux-next-20081126/drivers/block/virtio_blk.c
@@ -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,

\
 
 \ /
  Last update: 2008-11-26 22:19    [W:0.042 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site