From patchwork Wed Oct 15 09:37:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 38769 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1F59620973 for ; Wed, 15 Oct 2014 09:38:40 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id c13sf615242eek.1 for ; Wed, 15 Oct 2014 02:38:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=HG8lUyR8RdZgKCFhHyNZpeA3VYtRinuKx4f93eVnuiU=; b=jvo2s4eR4izDY44Lc/oh4eCD72s8HkkPSMy8cxte4guItTO50JscPVhycqaZnZqaH1 /Xogf2FosCz7luVu8/ZciCPgA4/eJarZoohzPpjXgm3+hEfNzwy4WwDXVF1rO4BIHduu Wfzi8CtIUdiWE6R47ZnDS7m01aEVds60/TipdFSALtTbTVxGAD3mTf4YCQiajLJUxE7B gXRVjseZyRfMN5R+pQQmEUOqH0VoXzEcXyEBDTv9/Yg5WQkIVqF00zxOJ9zL8D2wPxS6 VJgXmGdzlutZXd2rAE2BLjpZ4SRORg5tztKaB/SCt1OL33P2uPkOlls9cpLDpbzpzuhi 41Ug== X-Gm-Message-State: ALoCoQkx/0SrCPXMAbG1KS+etSZ7roL++arvpxahhJudrs+nT1PSB19jqiGoc58WJQJm7V4iOwCV X-Received: by 10.112.32.163 with SMTP id k3mr179974lbi.17.1413365919252; Wed, 15 Oct 2014 02:38:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.161 with SMTP id rd1ls36221lac.95.gmail; Wed, 15 Oct 2014 02:38:39 -0700 (PDT) X-Received: by 10.152.178.197 with SMTP id da5mr2040866lac.83.1413365919106; Wed, 15 Oct 2014 02:38:39 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id j2si29707052lbv.86.2014.10.15.02.38.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Oct 2014 02:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id q1so691179lam.22 for ; Wed, 15 Oct 2014 02:38:39 -0700 (PDT) X-Received: by 10.152.120.200 with SMTP id le8mr10762386lab.67.1413365918953; Wed, 15 Oct 2014 02:38:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp559035lbz; Wed, 15 Oct 2014 02:38:38 -0700 (PDT) X-Received: by 10.229.247.200 with SMTP id md8mr18456747qcb.7.1413365917377; Wed, 15 Oct 2014 02:38:37 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o80si1916062qge.76.2014.10.15.02.38.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Oct 2014 02:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:43272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeL2S-0000E7-ME for patch@linaro.org; Wed, 15 Oct 2014 05:38:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeL1k-000842-52 for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:37:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeL1b-0002J2-UB for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:37:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeL1b-0002I2-NC for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:37:43 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9F9bftS029493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Oct 2014 05:37:41 -0400 Received: from nilsson.home.kraxel.org (ovpn-116-60.ams2.redhat.com [10.36.116.60]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9F9bfxJ012098; Wed, 15 Oct 2014 05:37:41 -0400 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id 675AD8101B; Wed, 15 Oct 2014 11:37:40 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Wed, 15 Oct 2014 11:37:36 +0200 Message-Id: <1413365856-9571-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1413365856-9571-1-git-send-email-kraxel@redhat.com> References: <1413365856-9571-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , Gerd Hoffmann Subject: [Qemu-devel] [PULL 2/2] hw/display/vga: Remove unused arrays dmask4 and dmask16 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kraxel@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell 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. Signed-off-by: Peter Maydell Reviewed-by: David Gibson Signed-off-by: Gerd Hoffmann --- 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];