* [PATCH] janitor: revert accidental type change
@ 2008-01-21 12:23 Jan Kiszka
[not found] ` <47948ECC.9000404-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2008-01-21 12:23 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
While trying to reduce the warning noise (to identify warnings of
homebrewed patches), I also came across this bogus but fortunately
harmless type change in bdrv_commit. Fix below.
Jan
Index: kvm-userspace/qemu/block.c
===================================================================
--- kvm-userspace.orig/qemu/block.c
+++ kvm-userspace/qemu/block.c
@@ -460,7 +460,7 @@ int bdrv_commit(BlockDriverState *bs)
BlockDriver *drv = bs->drv;
int64_t i, total_sectors;
int n, j;
- unsigned char *sector[512];
+ unsigned char sector[512];
if (!drv)
return -ENOMEDIUM;
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] janitor: revert accidental type change
[not found] ` <47948ECC.9000404-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org>
@ 2008-01-21 13:01 ` Laurent Vivier
2008-01-21 13:20 ` Carlo Marcelo Arenas Belon
2008-01-22 13:33 ` Avi Kivity
2 siblings, 0 replies; 4+ messages in thread
From: Laurent Vivier @ 2008-01-21 13:01 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Avi Kivity
Le lundi 21 janvier 2008 à 13:23 +0100, Jan Kiszka a écrit :
> While trying to reduce the warning noise (to identify warnings of
> homebrewed patches), I also came across this bogus but fortunately
> harmless type change in bdrv_commit. Fix below.
>
> Jan
This has already been reported.
Please apply, Avi.
I'm working on a patch to be able to use snapshot=on and cache=off
together, but while I'm fighting against AIO (I've an incomprehensible
EINVAL) you should apply this fix.
Laurent
>
> Index: kvm-userspace/qemu/block.c
> ===================================================================
> --- kvm-userspace.orig/qemu/block.c
> +++ kvm-userspace/qemu/block.c
> @@ -460,7 +460,7 @@ int bdrv_commit(BlockDriverState *bs)
> BlockDriver *drv = bs->drv;
> int64_t i, total_sectors;
> int n, j;
> - unsigned char *sector[512];
> + unsigned char sector[512];
>
> if (!drv)
> return -ENOMEDIUM;
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] janitor: revert accidental type change
[not found] ` <47948ECC.9000404-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org>
2008-01-21 13:01 ` Laurent Vivier
@ 2008-01-21 13:20 ` Carlo Marcelo Arenas Belon
2008-01-22 13:33 ` Avi Kivity
2 siblings, 0 replies; 4+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2008-01-21 13:20 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Avi Kivity
On Mon, Jan 21, 2008 at 01:23:40PM +0100, Jan Kiszka wrote:
> While trying to reduce the warning noise (to identify warnings of
> homebrewed patches), I also came across this bogus but fortunately
> harmless type change in bdrv_commit. Fix below
the same fix was proposed before in :
http://www.mail-archive.com/kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg11246.html
but as you can see in that thread, a more complete change will be needed
to cover for alignment issues when using direct IO (cache=off)
Carlo
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] janitor: revert accidental type change
[not found] ` <47948ECC.9000404-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org>
2008-01-21 13:01 ` Laurent Vivier
2008-01-21 13:20 ` Carlo Marcelo Arenas Belon
@ 2008-01-22 13:33 ` Avi Kivity
2 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-01-22 13:33 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Jan Kiszka wrote:
> While trying to reduce the warning noise (to identify warnings of
> homebrewed patches), I also came across this bogus but fortunately
> harmless type change in bdrv_commit. Fix below.
>
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-22 13:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 12:23 [PATCH] janitor: revert accidental type change Jan Kiszka
[not found] ` <47948ECC.9000404-kv7WeFo6aLtBDgjK7y7TUQ@public.gmane.org>
2008-01-21 13:01 ` Laurent Vivier
2008-01-21 13:20 ` Carlo Marcelo Arenas Belon
2008-01-22 13:33 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox