From nobody Fri May 10 21:13:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1620969935; cv=none; d=zohomail.com; s=zohoarc; b=AK0VS7zYxqcDCj8r0vTQii+UNbulIuJ6XoFYkY5RtEXirEZvOJ4xmc3Y77oEVG6UFhbG7LzwOR7678V8MURUlh6Rf94sL7NGPQJRo93WxLrSkbsCtP2ozWyJvwnKhM8JwMOOnTMvlSA92aJRX/z4PZTJQmu8X+9toHxczdAAJII= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620969935; h=Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=nDAVwUVp0bRIy+WVyNpgD+i0qNly95gbWOd3bPz4lr0=; b=YU05qotH5e7O/XBs0iqYEfg4pNNRC7sttLBh7bqOvedluAnxt2WfkzNhwU8ArODkO6un3pfHP8k9JetcWAETMBiIS0fx+6QKDnOpR97Yjbth+A8RIqcvLayMGqTaFKeuBur5pMB0bKwYsbkYUxVva13R2O19UKveAoAK7YrtwaI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162096993580753.81126112851996; Thu, 13 May 2021 22:25:35 -0700 (PDT) Received: from localhost ([::1]:49670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhQKM-0002c1-8U for importer@patchew.org; Fri, 14 May 2021 01:25:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhQJQ-0001nw-Bg; Fri, 14 May 2021 01:24:36 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhQJO-0007Jh-SM; Fri, 14 May 2021 01:24:36 -0400 Received: by mail-ej1-x62b.google.com with SMTP id j14so1627208ejy.1; Thu, 13 May 2021 22:24:34 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id hz10sm1112297ejc.40.2021.05.13.22.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 22:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nDAVwUVp0bRIy+WVyNpgD+i0qNly95gbWOd3bPz4lr0=; b=Anr12DHRyfexRdZhh9mypuKZtIZtAWrVh3mHI1Z0E43HYUo6bhXUUaDMPNVOKjgmDW Osz+Vq7GX9+vjVFBQv+QcZY6hwQfWsJLzIEiCUahJodHPmk3I/WR4M9yW2WKJHv8c3D7 Pv6qgM9tEZX/yIQWlU+e94WDHAwHknn4m5pYvbSXdHX+/3LNI2YjD8EczNGrTz1V0Oo5 9mHXGsEgNLsH0iN2tuoqT1IDmMvswGJcNTkeHEw/DSeAt9hsRaZ/GgtgsAhvp7l3AmiN JnHsPL9lQorZLgQdECVqlJUxluih0COoscODrUxhmuC2hw27yqeVFxkNHJBXfl4VUxEd 8ywQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nDAVwUVp0bRIy+WVyNpgD+i0qNly95gbWOd3bPz4lr0=; b=frjZg6eX85ahIeEoGJGdqpf5MmM4oEZvmSq6R7Sc6G4pqr0I/oQPmPjjS4jLttHf1Z hb2JcJDHNR+7qMKXficZyrME3tqHjs+U/tai8zLOr1gRNfLCxg80u7hBLO9KqO469EAm wWBhuS+vpHqOzjt7auUWFKpfd6C+MqN3R11Q2mWxiovCdF9zfl5RobF/jY57mBPKxIGC /2zRX6/q7mHl7ydDhXf70FYRMoca0jCxQyUOCCR3GTAFMxSbGh2sMUJjOXq9khIo8CnE A9wzmecJ5pPUKV5JR/RMiQ3Ft/zaxXXag2LeFD9CRN4mz72U0krEDta6KCvXNchT0MPD ULzg== X-Gm-Message-State: AOAM530xdTErfKDfg3MRwKoeGRqu3oVhhufO1yHRsUre6sNFeU+J9jNu rWuO81R045n7UjWWsZjxRV1upGF7L/cYLg== X-Google-Smtp-Source: ABdhPJzTc3CsQV3qJYmamQZzUgyuekCZTNkd6Fte5mFlL3vuRXRIZ8revCAZOSHE0/apL6OirkpLYQ== X-Received: by 2002:a17:906:d7a2:: with SMTP id pk2mr47158586ejb.551.1620969872681; Thu, 13 May 2021 22:24:32 -0700 (PDT) From: Bin Meng To: Alistair Francis , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH] target/riscv: Remove unnecessary riscv_*_names[] declaration Date: Fri, 14 May 2021 13:24:35 +0800 Message-Id: <20210514052435.2203156-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=bmeng.cn@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Type: text/plain; charset="utf-8" riscv_excp_names[] and riscv_intr_names[] are only referenced by target/riscv/cpu.c locally. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/riscv/cpu.h | 2 -- target/riscv/cpu.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 7e879fb9ca..adba2ff533 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -318,8 +318,6 @@ static inline bool riscv_feature(CPURISCVState *env, in= t feature) =20 extern const char * const riscv_int_regnames[]; extern const char * const riscv_fpr_regnames[]; -extern const char * const riscv_excp_names[]; -extern const char * const riscv_intr_names[]; =20 const char *riscv_cpu_get_trap_name(target_ulong cause, bool async); void riscv_cpu_do_interrupt(CPUState *cpu); diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 3191fd0082..7ee31f97a3 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -51,7 +51,7 @@ const char * const riscv_fpr_regnames[] =3D { "f30/ft10", "f31/ft11" }; =20 -const char * const riscv_excp_names[] =3D { +static const char * const riscv_excp_names[] =3D { "misaligned_fetch", "fault_fetch", "illegal_instruction", @@ -78,7 +78,7 @@ const char * const riscv_excp_names[] =3D { "guest_store_page_fault", }; =20 -const char * const riscv_intr_names[] =3D { +static const char * const riscv_intr_names[] =3D { "u_software", "s_software", "vs_software", --=20 2.25.1