From nobody Tue Feb 10 19:17:17 2026 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1627215963; cv=none; d=zohomail.com; s=zohoarc; b=jHjz50spXvY1luaiwMNL3kdtumnyx1YkoZgombgCTHOhLZmmberkbUL+UUFCzMFlL1Ekkw/aKmFfUs5ksf5mkJNkv7zd89thL2Uq2cHoB9o7cMkY9MiaW9pWWCqiaFmQSNGOMSpH0FqmURQUvoOiJUmz9m7VcVBhjrFY4hKeiFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627215963; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xtzZz/U5JKEQZUS0677OwXuHCf+mZlqk4XuZ1mS9HA8=; b=JaMFivxlHQzBxhsdB4HlSzGNjbj7tlwCb7RIL7++EjF3wJBOwXqScWoXpr4aCD2fCF9zJeenGWclhSfSdyP3S7uin5Pn9kKrq4H7nY0+SPRLOGdD1mw6FX0Zvz4zLA/9HQAKyTbxRYmYCFt2zkQljkkndKCzqeeF7shEjNnph7A= 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) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1627215963461140.27400108152517; Sun, 25 Jul 2021 05:26:03 -0700 (PDT) Received: from localhost ([::1]:39138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7dCk-0003D0-DK for importer@patchew.org; Sun, 25 Jul 2021 08:26:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7dBA-0000Il-L7 for qemu-devel@nongnu.org; Sun, 25 Jul 2021 08:24:24 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:40509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7dB8-0003lx-RV for qemu-devel@nongnu.org; Sun, 25 Jul 2021 08:24:24 -0400 Received: by mail-pl1-x62f.google.com with SMTP id c16so2818742plh.7 for ; Sun, 25 Jul 2021 05:24:22 -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 k37sm15005093pgm.84.2021.07.25.05.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 05:24:21 -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=xtzZz/U5JKEQZUS0677OwXuHCf+mZlqk4XuZ1mS9HA8=; b=TnEvzqs2ZhBy3RuFm60C8WIKal1UhxIL5I9i43NH50fgBJ1rPrVhV506jBDPM3e8aH uyGNLqYy+R8QCRyQajbi3EHwX2wY5VU0Z9e/80f/cAWytfJubBn3juZTgkDD+2QmQbV5 ivjjkQwJNN0kuCl+ZFoZayKLsp5Erds4Ju6cQjwoIrqNsKH5qvKzxDPPamgXPJXaOsaj WWDCGUhPRzR/JBbv/U/8X59v2UjA4ViOlAmR3ULvqRU8N6NtON66UCBUrWWrYEWbD/9P IydInGx8oGfGsygnBgZt+98+kgRPsVIto/D27rjNMlZrGcKskGOVufpFA8SoJJyuSEjG ywdw== 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=xtzZz/U5JKEQZUS0677OwXuHCf+mZlqk4XuZ1mS9HA8=; b=jqq7gQ7Uhjmk8/g+sJpNHMl9ArhGDdHaFDGG9fENrNkQEeeD5p057hccEhI2xreaf0 xULmY48tUMKz9YkqO1PCsTKxla6SOQyAfVr4Bz+YRq+IDSHD5O1tZ20gLP06DyhzfrW7 bUjL49LvqS+a7vllTSYbA0I+Bpb8T7K6U3d33bH0KmX5fIPzu34UlLsYpSpiKTg9R2Z9 a4LoSLtyTllkl6NCCn3HysWHnd5yjVxSMCz81Q0vgHoLaox53sBc5W2gteQ0mOE54Nhz moBXoo9PSsG/peYcDaAkCJY39LHCIucLVtkJq0KMzcTyLVJaDQ2jK3dovS0rgWkK/D2H cgRQ== X-Gm-Message-State: AOAM531RJfU3WrV9klezUrsguO5qTFMpR5lC06t+O7QW2h2+vEsuVoUh Gkd9NuOEz77Y+/LOHoVIv+vSQ4QfdNz6cg== X-Google-Smtp-Source: ABdhPJwNFhThOI/ZqVT/G8nfhoWNjTd71R48grLzZVNucOFcCCTO+3rGvfyiOJuXqIvxOkkdMeVS8w== X-Received: by 2002:a63:4e51:: with SMTP id o17mr13783774pgl.126.1627215861465; Sun, 25 Jul 2021 05:24:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.1? v2 2/9] accel/tcg: Remove unused variable in cpu_exec Date: Sun, 25 Jul 2021 02:24:09 -1000 Message-Id: <20210725122416.1391332-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210725122416.1391332-1-richard.henderson@linaro.org> References: <20210725122416.1391332-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1627215963944100003 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=C3=A9 Signed-off-by: Richard Henderson --- accel/tcg/cpu-exec.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index fc895cf51e..1c6f684cb0 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -853,7 +853,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, Tran= slationBlock *tb, =20 int cpu_exec(CPUState *cpu) { - CPUClass *cc =3D CPU_GET_CLASS(cpu); int ret; SyncClocks sc =3D { 0 }; =20 @@ -887,19 +886,14 @@ int cpu_exec(CPUState *cpu) * that we support, but is still unfixed in clang: * https://bugs.llvm.org/show_bug.cgi?id=3D21183 * - * 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 (-Wclobber= ed), * so we only perform the workaround for clang. */ cpu =3D current_cpu; - cc =3D 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 =3D=3D current_cpu); - g_assert(cc =3D=3D CPU_GET_CLASS(cpu)); #endif =20 #ifndef CONFIG_SOFTMMU --=20 2.25.1