From patchwork Mon Jul 26 21:47:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 485868 Delivered-To: patch@linaro.org Received: by 2002:a17:907:d92:0:0:0:0 with SMTP id go18csp4016417ejc; Mon, 26 Jul 2021 14:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx00sTWhW2ZQmrpbmL8G0NDPN/FQ4+h08YNFk5O65mX4Wxvii9wssYM/Lke2+IMIzHD/a6z X-Received: by 2002:a05:6638:1907:: with SMTP id p7mr18549781jal.93.1627336198211; Mon, 26 Jul 2021 14:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627336198; cv=none; d=google.com; s=arc-20160816; b=OyhYkvzJPciFYNMx0CaH9/N7VIzw6dhG5Kvv63YBCbVec+52E0ze4in0+c2xJSqUuJ pC2qzWlofRqihxakMSDBBXWWDMQFf+acg5M24vJdSHDWkRSIxKCnqdUDtIqmA7h9QbDA kc+J2CAlBwjrm9FpJM/PG8OWUR8mF4KRpOAk6cJc0VBBl0Wvszd4siDXn5INPhMGbO4C d02LC7ZhgHEwkwDQZM3pZRddUuOEFdhCVodYErE7XlU+Jy3Kmz+cRWfddnx3wdT6cdbn +cujdul7Q09fo1SOEG14jsmHx3GYJ7250+ZAQnzfmFSP8CukIn5UDtRPbJWi0VmsSpjy qKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=TPMzfyzPxQws2QFaU9LwgJDz9bd8a19l0TLsA22Vwpo=; b=fLKGvARLXN+jJbCPPVwRP2g0HXW5RuCLttKXz1p1aY6Qt1YVZ2yU5/vxxTQ+yS0rXM 5LN46DjsDXA91Jd8gjBKMAFVXErCXT2zaDP4uzE16fGYZLjOGmVnEap/AuBD1qRSys1D KmE+u+PKeW6uL6h+wC5xxtRR7f3KhyvkMZvWXFupZxbqHR6ZIOojm5NJPjwY/9XFnzjr eZXTcFTVmP1EAql6REJwwk9M7TPC6K0e+nt9fwjX+JF+6LluP3QkouhwlY9vleIHRA+A BC1v8KW6nZrdxH1XiRzszbu72DZU4hjZKwrhZMpQLKGVKD2GM7XQ7DFtMd3ZkyDbLyXS wZTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zdogzrz2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d13si1164792iod.50.2021.07.26.14.49.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jul 2021 14:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zdogzrz2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m88U1-0006i2-H9 for patch@linaro.org; Mon, 26 Jul 2021 17:49:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m88Rq-0002Ww-0m for qemu-devel@nongnu.org; Mon, 26 Jul 2021 17:47:42 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:54051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m88Ro-00068p-CJ for qemu-devel@nongnu.org; Mon, 26 Jul 2021 17:47:41 -0400 Received: by mail-pj1-x1030.google.com with SMTP id j1so14828988pjv.3 for ; Mon, 26 Jul 2021 14:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TPMzfyzPxQws2QFaU9LwgJDz9bd8a19l0TLsA22Vwpo=; b=zdogzrz2B1KexJnWRCoc7qHkTb7o1ZIXaTs6AtAhmzkLnOaIztIrRNU86keHgWCjoL 3Ka3A3FsHufm7ptF2Z/Un0kR99972CQ5VwxJHpOo1oxRbKZGk18ICGYGG6Mdlvg4/dge /84aSZqlL2TCVopGAnQQAEKjsW4K0A67qfgI3Kgzk/pi0qQMcWyWVZXTRXq8kLqEy6ih 3StSTxA1niy7NKL+dKoqok5lvNrggH46kWvePPzbz7b2WmXJn/CEkORNyvr4Z7BdtwKh Xo2hsOww73aaiAuaXW+Wh/BykgZqtlQvQAx/GQfKQBSpB1+ME33V7Y2Rwv/mF3Zj8VjN fBkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TPMzfyzPxQws2QFaU9LwgJDz9bd8a19l0TLsA22Vwpo=; b=JjlTJeWlSLGPTrH6fyUoY5IAGo/RevINjlsvBjnWunhE9BR82QSqsWLYpjeW0+9LnB gPSBl+GukCIiXsFmvlC75iGzUeKeRHAfvtVaGw2E4+s38ui/n+RuVx3JZpSJeLf2kyCF A4rQtkfaE3nfUb5REhb7zYY8xSOEtPRkyT8XzGh+PG+Ue3ZL0X5lncddvKBoI4VqL/+X aNKZSKtasoAfkZu5I4am631fo8xJRWl6CV3UzkpLNKraKSULodyRykMdBD32Fv+XQEty 9rZhktsrEijFA3i1SwGKWop6vkqbdLRwkl/dLd/DkFwWQjcfbNiCZXbvHR/pr+d+KN4F 2DJA== X-Gm-Message-State: AOAM530Xaw25lrrTClsDVpjHXcLpzC1jB3WlABrV4BSF00tzRz32zM1m nXZtUqfRv/uI/H8z7Mkbv8bMxk+tQ3pyOw== X-Received: by 2002:a17:902:ed95:b029:ee:aa46:547a with SMTP id e21-20020a170902ed95b02900eeaa46547amr16043130plj.27.1627336059113; Mon, 26 Jul 2021 14:47:39 -0700 (PDT) Received: from cloudburst.home (2603-800c-3202-ffa7-497b-6ae4-953c-7ad1.res6.spectrum.com. [2603:800c:3202:ffa7:497b:6ae4:953c:7ad1]) by smtp.gmail.com with ESMTPSA id e8sm997679pfm.218.2021.07.26.14.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 14:47:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL for-6.1 05/12] accel/tcg: Remove unused variable in cpu_exec Date: Mon, 26 Jul 2021 11:47:22 -1000 Message-Id: <20210726214729.2062862-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210726214729.2062862-1-richard.henderson@linaro.org> References: <20210726214729.2062862-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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, 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: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: accel/tcg/cpu-exec.c:783:15: error: variable 'cc' set but not used \ [-Werror,-Wunused-but-set-variable] Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- accel/tcg/cpu-exec.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index 5aa42fbff3..e5c0ccd1a2 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -855,7 +855,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, int cpu_exec(CPUState *cpu) { - CPUClass *cc = CPU_GET_CLASS(cpu); int ret; SyncClocks sc = { 0 }; @@ -889,19 +888,14 @@ int cpu_exec(CPUState *cpu) * that we support, but is still unfixed in clang: * https://bugs.llvm.org/show_bug.cgi?id=21183 * - * Reload essential local variables here for those compilers. + * Reload an essential local variable here for those compilers. * Newer versions of gcc would complain about this code (-Wclobbered), * so we only perform the workaround for clang. */ cpu = current_cpu; - cc = CPU_GET_CLASS(cpu); #else - /* - * Non-buggy compilers preserve these locals; assert that - * they have the correct value. - */ + /* Non-buggy compilers preserve this; assert the correct value. */ g_assert(cpu == current_cpu); - g_assert(cc == CPU_GET_CLASS(cpu)); #endif #ifndef CONFIG_SOFTMMU