From nobody Tue Apr 15 06:11:10 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583504672; cv=none; d=zohomail.com; s=zohoarc; b=GzJ1+6xGqf/Vu9tBr0R6WvBks0rkzC2ooYuRO6hQpFsUejbbGq/Il8Wkv/tX5yd7vN871UDnwEahJJc2MfUwEPBjo74WKQ67AEgrBCF6AjCfn3bnLrPkv6dlq56sHGbiGqtY+uNY6j/LLgXucggOBNbFL0NYfWQmZcDbqAOc3Lo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583504672; 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=X7mfZ74BwmZdiyyzlqXXN0fK4giEEEuqHqbKDSpCy3U=; b=Z/Rs2f1l8sL2r+hyCEoOnXabtrpNDZPE6xIgz+l1rV39VY5+j58G7CAN1qpe9Ip2+v53ndEwA8BTlrC2LNWzbk9wQhUmtMTUJA1DoDTHSlN91yahrqhsTg09kGo+RLVM8W3xyVLe9J03Zm3TxvJam6qGe9mn0yCjmllfqBBT958= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail 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 1583504672010225.71524883208815; Fri, 6 Mar 2020 06:24:32 -0800 (PST) Received: from localhost ([::1]:37500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADtu-0004JT-TB for importer@patchew.org; Fri, 06 Mar 2020 09:24:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60698) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADt5-0003Nq-2m for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jADt3-0007VG-Hv for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:38 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:56432 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jADt3-0007IW-Cj for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:37 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-400-Tpf-xd8aNaqKbb-TAlmuLw-1; Fri, 06 Mar 2020 09:23:33 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B19F218CA24B; Fri, 6 Mar 2020 14:23:32 +0000 (UTC) Received: from localhost (unknown [10.36.118.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8025D73899; Fri, 6 Mar 2020 14:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583504616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X7mfZ74BwmZdiyyzlqXXN0fK4giEEEuqHqbKDSpCy3U=; b=TjMJe2kErqOt3x0AFRGhzYxrBdxxa3Rml6NItWa6ePCfj0cE34MfatTm2ZNCMEJGdhBXPV NQ2X40rbswGvGBZWuvvwDunauFT4YIqXWnvEe3fNTapM8GcCBPMhZSdXbPwfwPC3i5p7rK J5wVUmC+tHm4JK67d661q5fJnbZhIpk= X-MC-Unique: Tpf-xd8aNaqKbb-TAlmuLw-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PULL 1/3] fuzz: fix style/typos in linker-script comments Date: Fri, 6 Mar 2020 14:23:16 +0000 Message-Id: <20200306142318.1435372-2-stefanha@redhat.com> In-Reply-To: <20200306142318.1435372-1-stefanha@redhat.com> References: <20200306142318.1435372-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.61 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: Laurent Vivier , Peter Maydell , Thomas Huth , qemu-block@nongnu.org, Darren Kenny , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Alexander Bulekov Signed-off-by: Alexander Bulekov Reviewed-by: Eric Blake Reviewed-by: Darren Kenny Message-id: 20200227031439.31386-2-alxndr@bu.edu Signed-off-by: Stefan Hajnoczi --- tests/qtest/fuzz/fork_fuzz.ld | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/qtest/fuzz/fork_fuzz.ld b/tests/qtest/fuzz/fork_fuzz.ld index b23a59f194..e086bba873 100644 --- a/tests/qtest/fuzz/fork_fuzz.ld +++ b/tests/qtest/fuzz/fork_fuzz.ld @@ -1,7 +1,8 @@ -/* We adjust linker script modification to place all of the stuff that nee= ds to - * persist across fuzzing runs into a contiguous seciton of memory. Then, = it is +/* + * We adjust linker script modification to place all of the stuff that nee= ds to + * persist across fuzzing runs into a contiguous section of memory. Then, = it is * easy to re-map the counter-related memory as shared. -*/ + */ =20 SECTIONS { @@ -17,7 +18,8 @@ SECTIONS } .data.fuzz_ordered : { - /* Coverage counters. They're not necessary for fuzzing, but are use= ful + /* + * Coverage counters. They're not necessary for fuzzing, but are use= ful * for analyzing the fuzzing performance */ __start___llvm_prf_cnts =3D .; @@ -32,6 +34,8 @@ SECTIONS __FUZZ_COUNTERS_END =3D .; } } -/* Dont overwrite the SECTIONS in the default linker script. Instead inser= t the - * above into the default script */ +/* + * Don't overwrite the SECTIONS in the default linker script. Instead inse= rt the + * above into the default script + */ INSERT AFTER .data; --=20 2.24.1 From nobody Tue Apr 15 06:11:10 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583504745; cv=none; d=zohomail.com; s=zohoarc; b=IG9NhMClF0xh4nAKSJEJMazlbhpKf9umrSYTpus/plqlaWHfzxR8FVz0n4mLbp/T+GYhtv7eFxlWfohL1ady2rIlHx7mHuLeV1p+Z6BZ+oSX5CFAR1a4KLG8mDSEVGtgIqZRMv6Vwif3+LaGrwkuwwPPXf5Ztz3YCIpRlJxQTVY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583504745; 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=XbFZ+xRC4xCgdTu1Z5jmW+hbiR8L9+v/14TGSPWC2R0=; b=epPPcAz3Hfo2kn70r3ze3BYf/g2/y4TL55ifWCprNM1e6qy0kTS5Mt6Q6XcU30XVJyxUr0VQk3T6A1Y6uYApiMl0CPJkX4AwR5wXeV5DcHAyRFxQCqXUbKZ6XiX1KqItf7Z8z37+e2qvkwfCN6tKMIlIcARfQwhyA64CNCxJgeA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail 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 1583504745578387.5761372070697; Fri, 6 Mar 2020 06:25:45 -0800 (PST) Received: from localhost ([::1]:37510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADv6-0005gU-Kf for importer@patchew.org; Fri, 06 Mar 2020 09:25:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60844) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADtA-0003WG-Tn for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jADt9-0000Vv-S5 for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:44 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56138 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jADt9-0000NK-NE for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:43 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-151-yZXa0ly6MwyB36M6wQn0oA-1; Fri, 06 Mar 2020 09:23:41 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D3F4D1137841; Fri, 6 Mar 2020 14:23:39 +0000 (UTC) Received: from localhost (unknown [10.36.118.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 19AAF60C63; Fri, 6 Mar 2020 14:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583504623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XbFZ+xRC4xCgdTu1Z5jmW+hbiR8L9+v/14TGSPWC2R0=; b=Ku6OZitfZGvLdWllOHLzt4dVfHf9XF7ECb8NHOSg5Z02mZqGO2IhS8JvGb+i8bO3cq+5zP y5gWVplsgSMabWzFqsus698u7YT/34L6DJZQZidNT4R8q8a2S/iCOCdpO4bJUta363PGgR RJbbUgh+1Mi1NRvxxkDYx4K+EuJwY1E= X-MC-Unique: yZXa0ly6MwyB36M6wQn0oA-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PULL 2/3] qtest: fix fuzzer-related 80-char limit violations Date: Fri, 6 Mar 2020 14:23:17 +0000 Message-Id: <20200306142318.1435372-3-stefanha@redhat.com> In-Reply-To: <20200306142318.1435372-1-stefanha@redhat.com> References: <20200306142318.1435372-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 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: Laurent Vivier , Peter Maydell , Thomas Huth , qemu-block@nongnu.org, Darren Kenny , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Alexander Bulekov Signed-off-by: Alexander Bulekov Reviewed-by: Eric Blake Reviewed-by: Darren Kenny Message-id: 20200227031439.31386-3-alxndr@bu.edu Signed-off-by: Stefan Hajnoczi --- qtest.c | 3 ++- tests/qtest/fuzz/qos_fuzz.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qtest.c b/qtest.c index 1af4e1b08d..5672b75c35 100644 --- a/qtest.c +++ b/qtest.c @@ -794,7 +794,8 @@ void qtest_server_init(const char *qtest_chrdev, const = char *qtest_log, Error ** } } =20 -void qtest_server_set_send_handler(void (*send)(void*, const char*), void = *opaque) +void qtest_server_set_send_handler(void (*send)(void*, const char*), + void *opaque) { qtest_server_send =3D send; qtest_server_send_opaque =3D opaque; diff --git a/tests/qtest/fuzz/qos_fuzz.c b/tests/qtest/fuzz/qos_fuzz.c index bbb17470ff..1a99277d60 100644 --- a/tests/qtest/fuzz/qos_fuzz.c +++ b/tests/qtest/fuzz/qos_fuzz.c @@ -120,7 +120,10 @@ static void walk_path(QOSGraphNode *orig_path, int len) QOSGraphNode *path; QOSGraphEdge *edge; =20 - /* etype set to QEDGE_CONSUMED_BY so that machine can add to the comma= nd line */ + /* + * etype set to QEDGE_CONSUMED_BY so that machine can add to the comma= nd + * line + */ QOSEdgeType etype =3D QEDGE_CONSUMED_BY; =20 /* twice QOS_PATH_MAX_ELEMENT_SIZE since each edge can have its arg */ --=20 2.24.1 From nobody Tue Apr 15 06:11:10 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583504855; cv=none; d=zohomail.com; s=zohoarc; b=Vv+QHxIBFGp0WKoYwTyNj5wWNG1XDsyyRrEZIp8x/0URZSnfMSINiA/F2P81QyohScVv/QBG4QUc1bzkWwgfMreParq3AsHkeiU/IdsRmjmFEucLltbN1jJvGI2KuhXF8IrdzOWg3tl+qmY2svCLm9f7uVJVPHAzojcxd5bE5cA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583504855; 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=ZvHkvVd+7sDC+hYczEiqu5wvxhfUX/wUGDE/sBpPNn4=; b=fpDj40Zg13VVf+WYrRH6jLlEgM9ojCJH35fh9pnfaYEYfSme3CUPiDI32iiKTMaD8ig33LVG3yhcuPNAaMrhIQ3ARIJWLucHLJC+VDgbeNY0dXq1bJPHL1ZGRBbaFgNDGeSKFs1Z0JVeR+ZzRs7MjeW+B7Ei2xn80dhF+3yrIj8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail 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 1583504855671786.8313835939515; Fri, 6 Mar 2020 06:27:35 -0800 (PST) Received: from localhost ([::1]:37548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADws-0007Ln-7y for importer@patchew.org; Fri, 06 Mar 2020 09:27:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jADtK-0003n9-4u for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jADtI-0002Qq-WA for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:54 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49415 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jADtI-0002K0-SF for qemu-devel@nongnu.org; Fri, 06 Mar 2020 09:23:52 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-108-tRUanmDlPJa04cFQjeqajg-1; Fri, 06 Mar 2020 09:23:48 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E8CD800D5B; Fri, 6 Mar 2020 14:23:47 +0000 (UTC) Received: from localhost (unknown [10.36.118.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 41C68909FB; Fri, 6 Mar 2020 14:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583504632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZvHkvVd+7sDC+hYczEiqu5wvxhfUX/wUGDE/sBpPNn4=; b=isfcE1QF1hwNvgHnXsh5eaCQ9/JzOPRPWQPFvHKh9F9QrE9ybp42hRG+5YyH1QIYdA8K/q busk+Q1NEAJ8hvpmTF+U0oJhxtoffe0Tc8gHSUIp7pNPF9EEtvZdXliTUuAIbKNiUmOeoJ T3TX6PrulXekHLv8ysnl7TG5ol3x1TM= X-MC-Unique: tRUanmDlPJa04cFQjeqajg-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PULL 3/3] tests: Fix a bug with count variables Date: Fri, 6 Mar 2020 14:23:18 +0000 Message-Id: <20200306142318.1435372-4-stefanha@redhat.com> In-Reply-To: <20200306142318.1435372-1-stefanha@redhat.com> References: <20200306142318.1435372-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 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: Laurent Vivier , Peter Maydell , Thomas Huth , Tianjia Zhang , qemu-block@nongnu.org, Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Tianjia Zhang The counting code here should use the local variable n_nodes_local. Otherwise, the variable n_nodes is counting incorrectly, causing the counting logic of the code to be wrong. Signed-off-by: Tianjia Zhang Signed-off-by: Stefan Hajnoczi Link: https://lore.kernel.org/r/20200207115433.118254-1-tianjia.zhang@linux= .alibaba.com Message-Id: <20200207115433.118254-1-tianjia.zhang@linux.alibaba.com> --- tests/test-rcu-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-rcu-list.c b/tests/test-rcu-list.c index 1442c0c982..92be51ec50 100644 --- a/tests/test-rcu-list.c +++ b/tests/test-rcu-list.c @@ -235,7 +235,7 @@ static void *rcu_q_updater(void *arg) j++; if (target_el =3D=3D j) { struct list_element *new_el =3D g_new(struct list_element,= 1); - n_nodes +=3D n_nodes_local; + n_nodes_local++; TEST_LIST_INSERT_AFTER_RCU(el, new_el, entry); break; } --=20 2.24.1