Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5671793pxv; Wed, 28 Jul 2021 17:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3dmI+M9K/CB3yoHf6jGmPJN7FoaBsCj2g7aDJwOxJwiJPOSXtPDj0x/cJMztTujOFV1+v X-Received: by 2002:a17:906:71c4:: with SMTP id i4mr1853953ejk.230.1627517207514; Wed, 28 Jul 2021 17:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627517207; cv=none; d=google.com; s=arc-20160816; b=TS1tq+q4feBR+bdhcfJVvIjVjHQtSBI4DZXqUf37XvAUDvxG+jWGNbk+x+FgqlLFjZ bp4+/V2iuTEJ2mMbxVTWSCI2Y7AZfhLxiewW5RhAqZ8iDO44HzGxvUbfaj/BbtVROls6 Z0SEjWggNX6PsCFuJKy3uQATCieSwc4FhRL3AACFKygXhQCCC+YCcNlSsBgfVk+e5qHE BzNixz2Y+TcYLajxVxfPtloBzF7Ah7i6IvcYg2pGLYb23VxhGX524unefOtut7oSf6+U j/jpwCMsWEBGrq4ejDqHrm6JYfgocUurToTgoGUl4isDIIbNcpl5aOOfa1Xiu94h3LjX U7qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=qS4dZP8LVMOzvqNeOrNyxMMuztrcHO+ASUrNyQqU0BU=; b=RX2m9yF08oMHNE8zQu2ki6fAblWXTxwFm2Us2CQNeXURIiiPpKc0339R7ElAho3Xua f+F1SwzTuIYPs0v/VFvo27azBjdLxHuf5WoXEa6IrFyn/Yytk8prQOii2EmC9E6ZtTvQ 8SjIT9YBTZkiHMjMepscOqcUJzhY7NzdK1S/8fhKvqqXOPz07GIecfXeDg2KYpwi5Dd5 aH+0775IpL/xONn9JPxbmnMOA1bFHZV/pP5DL01FePCqVE73Meln9g4zg0nahqXlQGpz hRHzp1+DCh4pbBW2Til1/aBLuTyXyPjbi+BIxiiPKE3sUK6jbU65neHAfEfGXkVsrxHJ EjMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si1344585ejf.122.2021.07.28.17.06.24; Wed, 28 Jul 2021 17:06:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbhG2AES (ORCPT + 99 others); Wed, 28 Jul 2021 20:04:18 -0400 Received: from smtpbg587.qq.com ([113.96.223.105]:35667 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232355AbhG2AES (ORCPT ); Wed, 28 Jul 2021 20:04:18 -0400 X-QQ-mid: bizesmtp47t1627517045tc5sn4m5 Received: from ficus.lan (unknown [171.223.99.141]) by esmtp6.qq.com (ESMTP) with id ; Thu, 29 Jul 2021 08:04:04 +0800 (CST) X-QQ-SSF: 01000000002000B0C000B00A0000000 X-QQ-FEAT: N/s2IhZC2kB/UP9K3qmqMqXKNEviE95eaKovK49Vfuc1Vvwz/R0XX6qcQiTtb XMq2lLxXmr/HK1mJCpxCixoxMZ8/n/HhhitsKHC7j89l0HD3rDe3Uc/Olq4MN3xlLbULkYe O97HKLq5Wp7JlBd+Ab+DKqv3oXorG8Mpggzc0Pmt7E6o1Y+0S5aqHN1tS1umUljQ4wXnYjt lbCp2y9XlgjuefN5DzyQAMFqy3SCra04r03YyrbXGBsh6wzVvDXm+serta7aMnBXhKlq4jl HKxBvMSiIO55xGgLfbFXInCAVdHsCcgoSmADXF9D4dS7B6az1gePwKeTZlAatnofi8tQ== X-QQ-GoodBg: 0 From: Jason Wang To: jasowang@redhat.com Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] tools/virtio: use 'unsigned int' instead of bare 'unsigned' Date: Thu, 29 Jul 2021 08:04:02 +0800 Message-Id: <20210729000402.45690-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the lazy way 'unsigned' with 'unsigned int' which is more accurate. Signed-off-by: Jason Wang --- tools/virtio/vringh_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virtio/vringh_test.c b/tools/virtio/vringh_test.c index fa87b58bd5fa..3e85f4ec210d 100644 --- a/tools/virtio/vringh_test.c +++ b/tools/virtio/vringh_test.c @@ -447,7 +447,7 @@ int main(int argc, char *argv[]) char buf[28]; u16 head; int err; - unsigned i; + unsigned int i; void *ret; bool (*getrange)(struct vringh *vrh, u64 addr, struct vringh_range *r); bool fast_vringh = false, parallel = false; @@ -654,7 +654,7 @@ int main(int argc, char *argv[]) /* Free those buffers. */ for (i = 0; i < RINGSIZE; i++) { - unsigned len; + unsigned int len; assert(virtqueue_get_buf(vq, &len) != NULL); } -- 2.32.0