From nobody Tue May 21 13:10:54 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1671608633; cv=none; d=zohomail.com; s=zohoarc; b=Q8AEbQZUddfB9VTPwKVoLgCNxmJPcCKeTyvKBC65BIvYoqWSigIJiOZE1kuGfS16/IVNZfOvE6gMZ6G0iiABRD2VFDMhKk3z0jsI80zYK0ezQgUoYNGzN7PQfPGl7eEC0QvO7ffUs2Qfm96q9GZIAeoW06ZIVxbCD9i0vxns3Qc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671608633; 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=zn8RE9bkGb5wvE/Wo/L+tyIK7nNLQkZXvyqS6ZelWWU=; b=Mp3Ak1vsRvwTyq+byk8NisUz6ux3aCmhpjJOYNtTk/ozpOByefIOAr6oY613mIQ8Am+VpSPT+v32FLoFCYe+x5EbHOuXdxNWxwNGB7IxQV3r5iO0+ANEkU0N3BE51puTrjDHNhAfAh9sWrbIUUbReTAAhgno98s+Shj0MreUA14= 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 1671608633213389.95150025015414; Tue, 20 Dec 2022 23:43:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7tko-00070d-Tu; Wed, 21 Dec 2022 02:43:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7tkg-0006zt-Ao for qemu-devel@nongnu.org; Wed, 21 Dec 2022 02:42:58 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7tke-00048m-Oj for qemu-devel@nongnu.org; Wed, 21 Dec 2022 02:42:58 -0500 Received: by mail-wr1-x429.google.com with SMTP id w15so14036819wrl.9 for ; Tue, 20 Dec 2022 23:42:56 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id w12-20020a05600018cc00b002423edd7e50sm14307188wrq.32.2022.12.20.23.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 23:42:53 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id BE7701FFBC; Wed, 21 Dec 2022 07:42:52 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zn8RE9bkGb5wvE/Wo/L+tyIK7nNLQkZXvyqS6ZelWWU=; b=icPi5z68TEE0JNAzOOB4+LLMgx+zGcT79ND3LTALsFoNIdZ4Iy2+rJGJOOLVJkSDYz v4prhhnOzfbudk+j5fXdwMFIhOW6X8fs1VQOpAc4Zl6SdJEd+RmZ3eQ/4a/hxlQovaQn FFGnh1EtI2nx08gfnFIqoStrjbDlFMs4qav1ig4mBlueYMHCc9X+QqdRMmLX4WRYGh2d POiRYLq75yCrzj4bxc+q1sLzaLK0UA5ACVfLhL5QLCG00yGE0+W4+roMrHX52wQwrh+1 Og4ajYVgV1m4JaDChx1a39MwCEBhMW4KrPuWu/dYW7h8Gb8DKODNVET+STKLDpA1lz8y vMiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zn8RE9bkGb5wvE/Wo/L+tyIK7nNLQkZXvyqS6ZelWWU=; b=JclC1VPOsombZdTdzKnaz6/qmjoRd4X+5NYhhBtZeAvD7vBgi+adSIO6+HAEI0NfwF 00JWmBlPWfDCb506T6mzmuVvUDb6+3e2EobvbMksDvnFYjAmqqEPWnxydf1l50uC6B4W HrL8KdLd1z4ihRAUuQcZeBBaaODDYiRt0LduNFzG5bf0YE/0dRPxOcN0mlw5QJxk6lVa MQ/lF4XiKWIu9eUo+iCJmT/2vrZny7pEqNih5+Og1sBNdBX7+sFcnnGgUtELF6WVTUn/ P9Rtr+3eysiU03/rQJs9cWIo1e+4nOTJSitMUmfHmvRyEAd6+OlFgiavj4xa7anoFS5f 3UcQ== X-Gm-Message-State: AFqh2krsv3szRb2Eb5UeZTpa2YWYWj81l9WILzTZsk0X8uqieBg7bqg7 Smxb3bAggGBE6Ek+/DlYSI/3tpKP+GJGE25T X-Google-Smtp-Source: AMrXdXuEycVc7JxgwYb4+fGN3jVGPL3mz88YpD2lHMc+DZ9W9B4oMBHS02JBqi9S1bwW/V7vApv6IQ== X-Received: by 2002:adf:eb4f:0:b0:242:659c:dc7 with SMTP id u15-20020adfeb4f000000b00242659c0dc7mr394592wrn.61.1671608575237; Tue, 20 Dec 2022 23:42:55 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Beraldo Leal , Paolo Bonzini , fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta Subject: [[PATCH]--edit 4/6] tests/tcg: fix unused variable in linux-test Date: Wed, 21 Dec 2022 07:42:50 +0000 Message-Id: <20221221074252.1962896-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221221074252.1962896-1-alex.bennee@linaro.org> References: <20221221074252.1962896-1-alex.bennee@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=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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.29 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1671608634844100003 The latest hexagon compiler picks up that we never consume wcount. Given the name of the #define that rcount checks against is WCOUNT_MAX I figured the check just got missed. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/tcg/multiarch/linux/linux-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tcg/multiarch/linux/linux-test.c b/tests/tcg/multiarch/l= inux/linux-test.c index 5a2a4f2258..64f57cb287 100644 --- a/tests/tcg/multiarch/linux/linux-test.c +++ b/tests/tcg/multiarch/linux/linux-test.c @@ -354,13 +354,17 @@ static void test_pipe(void) if (FD_ISSET(fds[0], &rfds)) { chk_error(read(fds[0], &ch, 1)); rcount++; - if (rcount >=3D WCOUNT_MAX) + if (rcount >=3D WCOUNT_MAX) { break; + } } if (FD_ISSET(fds[1], &wfds)) { ch =3D 'a'; chk_error(write(fds[1], &ch, 1)); wcount++; + if (wcount >=3D WCOUNT_MAX) { + break; + } } } } --=20 2.34.1