All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: David Gibson <david@gibson.dropbear.id.au>,
	Gerd Hoffmann <kraxel@redhat.com>,
	qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] hw/display/vga: Remove unused arrays dmask4 and dmask16
Date: Sat, 11 Oct 2014 07:26:15 +1100	[thread overview]
Message-ID: <1412972775.30859.325.camel@pasglop> (raw)
In-Reply-To: <1412970269-21120-1-git-send-email-peter.maydell@linaro.org>

On Fri, 2014-10-10 at 20:44 +0100, Peter Maydell wrote:
> Following cleanup of the vga device code in commit d2e043a8041,
> the arrays dmask4 and dmask16 are now unused. gcc doesn't warn
> about this, but clang does; remove them.

Ah right, I missed those, thanks.

> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  hw/display/vga.c | 26 --------------------------
>  1 file changed, 26 deletions(-)
> 
> diff --git a/hw/display/vga.c b/hw/display/vga.c
> index 19e7f23..52eaf05 100644
> --- a/hw/display/vga.c
> +++ b/hw/display/vga.c
> @@ -136,32 +136,6 @@ static const uint32_t mask16[16] = {
>  #define PAT(x) cbswap_32(x)
>  #endif
>  
> -static const uint32_t dmask16[16] = {
> -    PAT(0x00000000),
> -    PAT(0x000000ff),
> -    PAT(0x0000ff00),
> -    PAT(0x0000ffff),
> -    PAT(0x00ff0000),
> -    PAT(0x00ff00ff),
> -    PAT(0x00ffff00),
> -    PAT(0x00ffffff),
> -    PAT(0xff000000),
> -    PAT(0xff0000ff),
> -    PAT(0xff00ff00),
> -    PAT(0xff00ffff),
> -    PAT(0xffff0000),
> -    PAT(0xffff00ff),
> -    PAT(0xffffff00),
> -    PAT(0xffffffff),
> -};
> -
> -static const uint32_t dmask4[4] = {
> -    PAT(0x00000000),
> -    PAT(0x0000ffff),
> -    PAT(0xffff0000),
> -    PAT(0xffffffff),
> -};
> -
>  static uint32_t expand4[256];
>  static uint16_t expand2[256];
>  static uint8_t expand4to8[16];

  reply	other threads:[~2014-10-10 20:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 19:44 [Qemu-devel] [PATCH] hw/display/vga: Remove unused arrays dmask4 and dmask16 Peter Maydell
2014-10-10 20:26 ` Benjamin Herrenschmidt [this message]
2014-10-12  5:37 ` David Gibson
2014-10-14  6:55 ` Gerd Hoffmann

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=1412972775.30859.325.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=kraxel@redhat.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --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 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.