* [Qemu-devel] [PATCH] more BlockDriver C99 initializers
@ 2009-04-06 12:02 Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Christoph Hellwig @ 2009-04-06 12:02 UTC (permalink / raw)
To: qemu-devel
Looks like the two bdrv_raw instances were missed last time.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: qemu/block-raw-posix.c
===================================================================
--- qemu.orig/block-raw-posix.c 2009-03-29 21:52:28.208005692 +0200
+++ qemu/block-raw-posix.c 2009-03-29 23:05:39.587130731 +0200
@@ -876,27 +876,24 @@ static void raw_flush(BlockDriverState *
}
BlockDriver bdrv_raw = {
- "raw",
- sizeof(BDRVRawState),
- NULL, /* no probe for protocols */
- raw_open,
- NULL,
- NULL,
- raw_close,
- raw_create,
- raw_flush,
+ .format_name = "raw",
+ .instance_size = sizeof(BDRVRawState),
+ .bdrv_open = raw_open,
+ .bdrv_close = raw_close,
+ .bdrv_create = raw_create,
+ .bdrv_flush = raw_flush,
#ifdef CONFIG_AIO
- .bdrv_aio_read = raw_aio_read,
- .bdrv_aio_write = raw_aio_write,
- .bdrv_aio_cancel = raw_aio_cancel,
- .aiocb_size = sizeof(RawAIOCB),
+ .bdrv_aio_read = raw_aio_read,
+ .bdrv_aio_write = raw_aio_write,
+ .bdrv_aio_cancel = raw_aio_cancel,
+ .aiocb_size = sizeof(RawAIOCB),
#endif
- .bdrv_read = raw_read,
- .bdrv_write = raw_write,
- .bdrv_truncate = raw_truncate,
- .bdrv_getlength = raw_getlength,
+ .bdrv_read = raw_read,
+ .bdrv_write = raw_write,
+ .bdrv_truncate = raw_truncate,
+ .bdrv_getlength = raw_getlength,
};
/***********************************************/
Index: qemu/block-raw-win32.c
===================================================================
--- qemu.orig/block-raw-win32.c 2009-03-29 23:04:19.118004848 +0200
+++ qemu/block-raw-win32.c 2009-03-29 23:06:36.012042514 +0200
@@ -229,20 +229,16 @@ static int raw_create(const char *filena
}
BlockDriver bdrv_raw = {
- "raw",
- sizeof(BDRVRawState),
- NULL, /* no probe for protocols */
- raw_open,
- NULL,
- NULL,
- raw_close,
- raw_create,
- raw_flush,
-
- .bdrv_read = raw_read,
- .bdrv_write = raw_write,
- .bdrv_truncate = raw_truncate,
- .bdrv_getlength = raw_getlength,
+ .format_name = "raw",
+ .instance_size = sizeof(BDRVRawState),
+ .bdrv_open = raw_open,
+ .bdrv_close = raw_close,
+ .bdrv_create = raw_create,
+ .bdrv_flush = raw_flush,
+ .bdrv_read = raw_read,
+ .bdrv_write = raw_write,
+ .bdrv_truncate = raw_truncate,
+ .bdrv_getlength = raw_getlength,
};
/***********************************************/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] more BlockDriver C99 initializers
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
@ 2009-04-06 12:19 ` Avi Kivity
2009-04-06 12:25 ` Christoph Hellwig
2009-04-07 18:07 ` Christoph Hellwig
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2009-04-06 12:19 UTC (permalink / raw)
To: qemu-devel
Christoph Hellwig wrote:
> Looks like the two bdrv_raw instances were missed last time.
>
tabs->spaces...
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] more BlockDriver C99 initializers
2009-04-06 12:19 ` Avi Kivity
@ 2009-04-06 12:25 ` Christoph Hellwig
0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2009-04-06 12:25 UTC (permalink / raw)
To: qemu-devel
On Mon, Apr 06, 2009 at 03:19:08PM +0300, Avi Kivity wrote:
> Christoph Hellwig wrote:
> >Looks like the two bdrv_raw instances were missed last time.
> >
>
> tabs->spaces...
This matches the other initializers around them.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] more BlockDriver C99 initializers
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
@ 2009-04-07 18:07 ` Christoph Hellwig
2009-04-07 18:09 ` [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion Christoph Hellwig
2009-04-07 18:24 ` [Qemu-devel] [PATCH] more BlockDriver C99 initializers Anthony Liguori
3 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2009-04-07 18:07 UTC (permalink / raw)
To: qemu-devel
In the meantime the block-posix-raw one got fixes as part of the fix
sparse warnings patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
2009-04-07 18:07 ` Christoph Hellwig
@ 2009-04-07 18:09 ` Christoph Hellwig
2009-04-07 18:24 ` [Qemu-devel] [PATCH] more BlockDriver C99 initializers Anthony Liguori
3 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2009-04-07 18:09 UTC (permalink / raw)
To: qemu-devel
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: qemu/block-raw-win32.c
===================================================================
--- qemu.orig/block-raw-win32.c 2009-04-07 20:03:18.757570009 +0200
+++ qemu/block-raw-win32.c 2009-04-07 20:05:14.313445383 +0200
@@ -229,20 +229,16 @@ static int raw_create(const char *filena
}
BlockDriver bdrv_raw = {
- "raw",
- sizeof(BDRVRawState),
- NULL, /* no probe for protocols */
- raw_open,
- NULL,
- NULL,
- raw_close,
- raw_create,
- raw_flush,
-
- .bdrv_read = raw_read,
- .bdrv_write = raw_write,
- .bdrv_truncate = raw_truncate,
- .bdrv_getlength = raw_getlength,
+ .format_name = "raw",
+ .instance_size = sizeof(BDRVRawState),
+ .bdrv_open = raw_open,
+ .bdrv_close = raw_close,
+ .bdrv_create = raw_create,
+ .bdrv_flush = raw_flush,
+ .bdrv_read = raw_read,
+ .bdrv_write = raw_write,
+ .bdrv_truncate = raw_truncate,
+ .bdrv_getlength = raw_getlength,
};
/***********************************************/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] more BlockDriver C99 initializers
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
` (2 preceding siblings ...)
2009-04-07 18:09 ` [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion Christoph Hellwig
@ 2009-04-07 18:24 ` Anthony Liguori
3 siblings, 0 replies; 6+ messages in thread
From: Anthony Liguori @ 2009-04-07 18:24 UTC (permalink / raw)
To: qemu-devel
Christoph Hellwig wrote:
> Looks like the two bdrv_raw instances were missed last time.
>
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
>
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-07 18:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
2009-04-06 12:25 ` Christoph Hellwig
2009-04-07 18:07 ` Christoph Hellwig
2009-04-07 18:09 ` [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion Christoph Hellwig
2009-04-07 18:24 ` [Qemu-devel] [PATCH] more BlockDriver C99 initializers Anthony Liguori
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.