- qga/win32: Use rundll for VSS installation - qga/win32: Remove change action from MSI installer - ide: Increment BB in-flight counter for TRIM BH - hw/pci-bridge/pxb: Fix missing swizzle - host-vdpa: make notifiers _init()/_uninit() symmetric - hw/virtio: vdpa: Fix leak of host-notifier memory-region - accel/tcg/cpu-exec: Fix precise single-stepping after interrupt - Allow setting up to 8 bytes with the generic loader - hw/net/virtio-net: make some VirtIONet const - accel/tcg: Optimize jump cache flush during tlb range flush - 9pfs: prevent opening special files (CVE-2023-2861) - tcg: Reduce tcg_assert_listed_vecop() scope - gitlab: Disable plugins for cross-i386-tci - vfio/pci: Fix a segfault in vfio_realize - block/iscsi: fix double-free on BUSY or similar statuses - tests/tcg: fix unused variable in linux-test - hw/net/vmxnet3: allow VMXNET3_MAX_MTU itself as a value - qga/vss-win32: fix warning for clang++-15 - vnc: avoid underflow when accessing user-provided address - block/monitor: Fix crash when executing HMP commit - virtio-gpu: add a FIXME for virtio_gpu_load() - hw/ppc/Kconfig: MAC_NEWWORLD should always select USB_OHCI_PCI - migration: report compress thread pid to libvirt Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
From 050aa274447899ecb000aa8d62d95b6c6192fc56 Mon Sep 17 00:00:00 2001
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
|
Date: Wed, 28 Jun 2023 10:08:22 +0800
|
|
Subject: [PATCH] tests/tcg: fix unused variable in linux-test
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
cheery-pick from 2bc6c79417b89c3306b724577e775f03fe61fb2e
|
|
|
|
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ée <alex.bennee@linaro.org>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
|
Message-Id: <20221221090411.1995037-5-alex.bennee@linaro.org>
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
|
---
|
|
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/linux/linux-test.c
|
|
index 019d8175ca..78c68540ef 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 >= WCOUNT_MAX)
|
|
+ if (rcount >= WCOUNT_MAX) {
|
|
break;
|
|
+ }
|
|
}
|
|
if (FD_ISSET(fds[1], &wfds)) {
|
|
ch = 'a';
|
|
chk_error(write(fds[1], &ch, 1));
|
|
wcount++;
|
|
+ if (wcount >= WCOUNT_MAX) {
|
|
+ break;
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
--
|
|
2.41.0.windows.1
|
|
|