From: Avi K. <av...@qu...> - 2008-01-07 10:47:37
|
Laurent Vivier wrote: > Le lundi 07 janvier 2008 à 11:27 +0200, Avi Kivity a écrit : > >> Carlo Marcelo Arenas Belon wrote: >> >>> revert a merge conflict from 075da586c92f09bd9a7401f1e80d72fde27c173 that >>> redefined sector as an array of pointers to char, instead of a statically >>> allocated buffer of chars, that was triggering the following warnings : >>> >>> block.c: In function `bdrv_commit': >>> block.c:480: warning: passing arg 3 of `bdrv_read' from incompatible pointer type >>> block.c:484: warning: passing arg 3 of `bdrv_write' from incompatible pointer type >>> >>> Signed-off-by: Carlo Marcelo Arenas Belon <ca...@sa...> >>> >>> >> Doesn't the cache=off option warrant an allocation here to ensure >> alignment (or perhaps a 1K stack buffer with runtime adjustment)? >> > > You're right, a good patch should be something like this (it is not > tested or even compiled) : > Looks good, but patch is corrupted by mail client. -- error compiling committee.c: too many arguments to function |