qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Pooja Dhannawat <dhannawatpooja1@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v4] blizzard: Remove support for DEPTH != 32
Date: Wed, 4 May 2016 15:13:15 +0100	[thread overview]
Message-ID: <CAFEAcA_2_UPc-pnRLwjh8JVa4T01_Z+a0nn0USd-xH=TTtpMYA@mail.gmail.com> (raw)
In-Reply-To: <1458971873-2768-1-git-send-email-dhannawatpooja1@gmail.com>

On 26 March 2016 at 05:57, Pooja Dhannawat <dhannawatpooja1@gmail.com> wrote:
> Removing support for DEPTH != 32 from blizzard template header
> and file that includes it, as macro DEPTH == 32 only used.
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> Signed-off-by: Pooja Dhannawat <dhannawatpooja1@gmail.com>

Hi. Apologies for not getting to this patch earlier -- I've been
busy with a bunch of other work and the QEMU 2.6 release.

In general this patch looks good, but unfortunately it doesn't compile:

hw/display/blizzard.c: In function ‘s1d13745_init’:
hw/display/blizzard.c:948:5: error: expected ‘;’ before ‘s’
     s->line_fn_tab[0] = blizzard_draw_fn_32;
     ^
In file included from hw/display/blizzard.c:929:0:
hw/display/blizzard.c: At top level:
hw/display/blizzard_template.h:86:22: error: ‘blizzard_draw_fn_32’
defined but not used [-Werror=unused-variable]
 static blizzard_fn_t glue(blizzard_draw_fn_, DEPTH)[0x10] = {
                      ^
cc1: all warnings being treated as errors

> +    assert(surface_bits_per_pixel(surface) == 32)

This is because you're missing a semicolon here.

It's important to at least compile and preferably also test
any patch you send to the list. (Occasionally it's not possible
if the code in question requires an obscure host OS or
library combination or something, in which case you should
note in the patch remarks below the "---" line that you weren't
able to compile test.)

In this case (and since it took me so long to get back to this
patch) I've just fixed up this error and applied the result to
target-arm.next.

There are a couple of nice further cleanups we can do on top
of this to remove blizzard_template.h altogether; I'll post
those patches in a moment.

thanks
-- PMM

  parent reply	other threads:[~2016-05-04 14:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-26  5:57 [Qemu-devel] [PATCH v4] blizzard: Remove support for DEPTH != 32 Pooja Dhannawat
2016-04-05  6:54 ` Pooja Dhannawat
2016-05-04 14:13 ` Peter Maydell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-24 18:18 Pooja Dhannawat
2016-03-24 19:03 ` Eric Blake
2016-03-25  3:09 ` Fam Zheng
2016-03-25  6:06   ` Pooja Dhannawat

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='CAFEAcA_2_UPc-pnRLwjh8JVa4T01_Z+a0nn0USd-xH=TTtpMYA@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=dhannawatpooja1@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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).