From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org, Evan Nemerson <evan@nemerson.com>
Cc: "Stefan Hajnoczi" <stefanha@redhat.com>,
"Kevin Wolf" <kwolf@redhat.com>,
qemu-trivial@nongnu.org,
"Daniel P . Berrangé" <berrange@redhat.com>,
qemu-block@nongnu.org, "Hanna Reitz" <hreitz@redhat.com>
Subject: Re: [PATCH-for-8.1] block/dmg: Declare a type definition for DMG uncompress function
Date: Mon, 20 Mar 2023 17:00:34 +0100 [thread overview]
Message-ID: <f012b07b-493a-1d13-6d5a-3ace5ba1f6bc@linaro.org> (raw)
In-Reply-To: <19ac8d20-5626-b014-aa77-607c757aee46@linaro.org>
On 20/3/23 16:56, Philippe Mathieu-Daudé wrote:
> On 20/3/23 16:26, Philippe Mathieu-Daudé wrote:
>> Introduce the BdrvDmgUncompressFunc type defintion. To emphasis
>> dmg_uncompress_bz2 and dmg_uncompress_lzfse are pointer to functions,
>> declare them using this new typedef.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> block/dmg.h | 8 ++++----
>> block/dmg.c | 7 ++-----
>> 2 files changed, 6 insertions(+), 9 deletions(-)
>
>
>> diff --git a/block/dmg.c b/block/dmg.c
>> index e10b9a2ba5..2769900359 100644
>> --- a/block/dmg.c
>> +++ b/block/dmg.c
>> @@ -31,11 +31,8 @@
>> #include "qemu/memalign.h"
>> #include "dmg.h"
>> -int (*dmg_uncompress_bz2)(char *next_in, unsigned int avail_in,
>> - char *next_out, unsigned int avail_out);
>> -
>> -int (*dmg_uncompress_lzfse)(char *next_in, unsigned int avail_in,
>> - char *next_out, unsigned int avail_out);
>> +BdrvDmgUncompressFunc *dmg_uncompress_bz2;
>> +BdrvDmgUncompressFunc *dmg_uncompress_lzfse;
>
> Unrelated, but since DMG maintainers are Cc'ed, upstream lzfse warning:
>
> In file included from ../../block/dmg-lzfse.c:26:
> /opt/homebrew/Cellar/lzfse/1.0/include/lzfse.h:56:43: warning: this
> function declaration is not a prototype [-Wstrict-prototypes]
> LZFSE_API size_t lzfse_encode_scratch_size();
> ^
> void
Reported in 2016:
https://github.com/lzfse/lzfse/issues/3#issuecomment-226574719
> Unfortunately last upstream activity was 6 years ago...
> https://github.com/lzfse/lzfse/pulls
next prev parent reply other threads:[~2023-03-20 16:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 15:26 [PATCH-for-8.1] block/dmg: Declare a type definition for DMG uncompress function Philippe Mathieu-Daudé
2023-03-20 15:56 ` Philippe Mathieu-Daudé
2023-03-20 16:00 ` Philippe Mathieu-Daudé [this message]
2023-03-20 16:00 ` Philippe Mathieu-Daudé
2023-04-05 19:56 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f012b07b-493a-1d13-6d5a-3ace5ba1f6bc@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=evan@nemerson.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).