From patchwork Tue Feb 3 20:42:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 44311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 699EC2034D for ; Tue, 3 Feb 2015 20:46:38 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf22464035lab.1 for ; Tue, 03 Feb 2015 12:46:37 -0800 (PST) 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=s5Db0nj5nx+k3brzJJeuYQh24E7+M145sjbzWPpEnWw=; b=d1TesKBXb4bo4e8X6GjML1aVd/IEHaEE/aKKhqkpPaCVbdiNbVufLFWn9l+gXFjp5e Hd8L4kpjlBf4n9TR2enL4qusB5hSoWXbD2fNfdO6z4WJJoRA0TAmJAtiKZEu9A7j1oVN 1h1v5Kq1jf0KXQyUr6ZY7xIq0XnS5FM9WrHnZJrj22cWzJqbTX0iRvptphrC6PIRSKQ4 ywjc91/B0n7Y891Xxy9M5RsxFsVi8Ec3VQ4cKT/outSz4S+0sv1rFTII7Xei+tX5jKZJ h1TBLU1WhoSzq+BuRfTOXPf1CcPoGKh7k+tSMRcSo19CB+aAJmsI6Ngl17hTtqIGgyLc sO+w== X-Gm-Message-State: ALoCoQn2WOjX5bud6KBy/XBofjMV48pYPCj23wdmxR8EBh43AcOvXSS9MwQxaFyohkOtlzdI0/3a X-Received: by 10.152.43.166 with SMTP id x6mr3374837lal.3.1422996397373; Tue, 03 Feb 2015 12:46:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.113 with SMTP id v17ls248557lal.3.gmail; Tue, 03 Feb 2015 12:46:37 -0800 (PST) X-Received: by 10.112.47.135 with SMTP id d7mr26949482lbn.54.1422996397163; Tue, 03 Feb 2015 12:46:37 -0800 (PST) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com. [2a00:1450:4010:c04::236]) by mx.google.com with ESMTPS id r10si6419848lar.126.2015.02.03.12.46.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 12:46:37 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::236 as permitted sender) client-ip=2a00:1450:4010:c04::236; Received: by mail-lb0-f182.google.com with SMTP id l4so40829022lbv.13 for ; Tue, 03 Feb 2015 12:46:37 -0800 (PST) X-Received: by 10.152.228.161 with SMTP id sj1mr6219121lac.74.1422996397073; Tue, 03 Feb 2015 12:46:37 -0800 (PST) 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.35.133 with SMTP id h5csp76560lbj; Tue, 3 Feb 2015 12:46:36 -0800 (PST) X-Received: by 10.140.43.11 with SMTP id d11mr996573qga.44.1422996394939; Tue, 03 Feb 2015 12:46:34 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z35si27459840qgd.73.2015.02.03.12.46.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 12:46:34 -0800 (PST) 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]:33148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIkMk-0004qM-4P for patch@linaro.org; Tue, 03 Feb 2015 15:46:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIkJg-0000SL-N1 for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIkJf-00051S-KK for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:24 -0500 Received: from mail-qc0-x230.google.com ([2607:f8b0:400d:c01::230]:34095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIkJf-00051O-Gv for qemu-devel@nongnu.org; Tue, 03 Feb 2015 15:43:23 -0500 Received: by mail-qc0-f176.google.com with SMTP id c9so37544867qcz.7 for ; Tue, 03 Feb 2015 12:43:23 -0800 (PST) X-Received: by 10.224.7.197 with SMTP id e5mr57532023qae.64.1422996203173; Tue, 03 Feb 2015 12:43:23 -0800 (PST) Received: from pike.twiddle.home.com (50-205-143-34-static.hfc.comcastbusiness.net. [50.205.143.34]) by mx.google.com with ESMTPSA id a6sm22229337qgf.13.2015.02.03.12.43.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Feb 2015 12:43:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 3 Feb 2015 12:42:59 -0800 Message-Id: <1422996181-22383-9-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422996181-22383-1-git-send-email-rth@twiddle.net> References: <1422996181-22383-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::230 Cc: kbastian@mail.uni-paderborn.de, peter.maydell@linaro.org Subject: [Qemu-devel] [PULL 08/10] disas/s390.c: Remove unused variables 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-Original-Sender: rth@twiddle.net X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::236 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=fail header.i=@gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The variables s390_opformats and s390_num_opformats are unused and provoke clang warnings: disas/s390.c:849:33: warning: variable 's390_opformats' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const struct s390_opcode s390_opformats[] = ^ disas/s390.c:875:18: warning: unused variable 's390_num_opformats' [-Wunused-const-variable] static const int s390_num_opformats = ^ Delete them, since QEMU doesn't use them. Signed-off-by: Peter Maydell Reviewed-by: Stefan Weil Message-id: 1419373100-17690-3-git-send-email-peter.maydell@linaro.org Signed-off-by: Richard Henderson --- disas/s390.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/disas/s390.c b/disas/s390.c index 25499ba..974460c 100644 --- a/disas/s390.c +++ b/disas/s390.c @@ -106,10 +106,6 @@ struct s390_opcode static const struct s390_opcode s390_opcodes[]; static const int s390_num_opcodes; -/* A opcode format table for the .insn pseudo mnemonic. */ -static const struct s390_opcode s390_opformats[]; -static const int s390_num_opformats; - /* Values defined for the flags field of a struct powerpc_opcode. */ /* The operands table is an array of struct s390_operand. */ @@ -844,37 +840,6 @@ static const struct s390_operand s390_operands[] = #define MASK_SIY_DRI { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff } /* QEMU-END */ -/* The opcode formats table (blueprints for .insn pseudo mnemonic). */ - -static const struct s390_opcode s390_opformats[] = - { - { "e", OP8(0x00LL), MASK_E, INSTR_E, 3, 0 }, - { "ri", OP8(0x00LL), MASK_RI_RI, INSTR_RI_RI, 3, 0 }, - { "rie", OP8(0x00LL), MASK_RIE_RRP, INSTR_RIE_RRP, 3, 0 }, - { "ril", OP8(0x00LL), MASK_RIL_RP, INSTR_RIL_RP, 3, 0 }, - { "rilu", OP8(0x00LL), MASK_RIL_RU, INSTR_RIL_RU, 3, 0 }, - { "rr", OP8(0x00LL), MASK_RR_RR, INSTR_RR_RR, 3, 0 }, - { "rre", OP8(0x00LL), MASK_RRE_RR, INSTR_RRE_RR, 3, 0 }, - { "rrf", OP8(0x00LL), MASK_RRF_RURR, INSTR_RRF_RURR, 3, 0 }, - { "rs", OP8(0x00LL), MASK_RS_RRRD, INSTR_RS_RRRD, 3, 0 }, - { "rse", OP8(0x00LL), MASK_RSE_RRRD, INSTR_RSE_RRRD, 3, 0 }, - { "rsi", OP8(0x00LL), MASK_RSI_RRP, INSTR_RSI_RRP, 3, 0 }, - { "rsy", OP8(0x00LL), MASK_RSY_RRRD, INSTR_RSY_RRRD, 3, 3 }, - { "rx", OP8(0x00LL), MASK_RX_RRRD, INSTR_RX_RRRD, 3, 0 }, - { "rxe", OP8(0x00LL), MASK_RXE_RRRD, INSTR_RXE_RRRD, 3, 0 }, - { "rxf", OP8(0x00LL), MASK_RXF_RRRDR, INSTR_RXF_RRRDR,3, 0 }, - { "rxy", OP8(0x00LL), MASK_RXY_RRRD, INSTR_RXY_RRRD, 3, 3 }, - { "s", OP8(0x00LL), MASK_S_RD, INSTR_S_RD, 3, 0 }, - { "si", OP8(0x00LL), MASK_SI_URD, INSTR_SI_URD, 3, 0 }, - { "siy", OP8(0x00LL), MASK_SIY_URD, INSTR_SIY_URD, 3, 3 }, - { "ss", OP8(0x00LL), MASK_SS_RRRDRD, INSTR_SS_RRRDRD,3, 0 }, - { "sse", OP8(0x00LL), MASK_SSE_RDRD, INSTR_SSE_RDRD, 3, 0 }, - { "ssf", OP8(0x00LL), MASK_SSF_RRDRD, INSTR_SSF_RRDRD,3, 0 }, -}; - -static const int s390_num_opformats = - sizeof (s390_opformats) / sizeof (s390_opformats[0]); - /* include "s390-opc.tab" generated from opcodes/s390-opc.txt rev 1.17 */ /* The opcode table. This file was generated by s390-mkopc.