* [PATCH -next] virtio_blk: fix type warning
@ 2008-11-26 21:15 Randy Dunlap
2008-11-27 12:55 ` Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-11-26 21:15 UTC (permalink / raw)
To: lkml; +Cc: jens.axboe, akpm, Rusty Russell
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,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] virtio_blk: fix type warning
2008-11-26 21:15 [PATCH -next] virtio_blk: fix type warning Randy Dunlap
@ 2008-11-27 12:55 ` Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2008-11-27 12:55 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, jens.axboe, akpm
On Thursday 27 November 2008 07:45:50 Randy Dunlap wrote:
> 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
Thanks, applied.
Rusty.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-27 12:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 21:15 [PATCH -next] virtio_blk: fix type warning Randy Dunlap
2008-11-27 12:55 ` Rusty Russell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.