Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp151217pxt; Thu, 5 Aug 2021 21:19:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMaNfqh4xZJntisPVHY43k0lQx66TejHWRrhnsioRtipu8YwUgGHDoS9TMF3bFduUOQ/qH X-Received: by 2002:a02:6a24:: with SMTP id l36mr7767745jac.4.1628223594564; Thu, 05 Aug 2021 21:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628223594; cv=none; d=google.com; s=arc-20160816; b=qj1KRS7S6o32VlyXj5DZE39WOMmbHyIE75HxKuHJpZM4taCQK1ljkTJlJwfx14ICbY +AWEW/LrbGWPRFCltQugIYn51PQmKQc+p/9UEnHLqvfA4mJUhlPbAnLCpnJDKEw2fpja 0Sw1xAhRMw0o2xC0y8/yadHDw5IvQVsVm7Rsnfdfy/PUXioLaKehSXzNV3KfoHhmhWl4 3lMxTPdy9WJxpDyiF4V3HPiIcMed8eCX5C9wrS2xXs2aCRN2lEtd/peGFtP912BuRP3k v6EHX6MLljIxxY2XaYyjV7+Mr2jzr8c6MO4vC8w7A7VmcLvWt9z2DycvzaKbNfm+44LL Yc7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MCW6M0K+DPxrj754zH128zD3EsmKOhs+543ICnuoMcc=; b=y7MESct6ykX3MoQIX4NO6iRgZZvSUHoKqMDF33S5rYoFvYoTcE1e/3rXGzQoEXFt5/ 5iUj+x6OuoMewLts7kV0ZN6/iFrsBaqhSi3541Nx5qQBfyRBAqiCxvIhbKDx5Sv1EcKt oTMqr3LFlpQzFufILwdlUaijJhls+Mf0K2mkro5BMhkf8bhIYOSh/AmYl+dFvl2FriVl tCiGQi0FG0XssQEVrPWY8J5MljB3fRHjbKX6VcogimqvDZiUH6cqi61iRN3XxX9nvZBE wF9PxAyOlBxA2S27XsxCAedylbs8d2AtecZ6LXNsFOtHnEUFGKSSJE1Fy2qe7+5IHFMy ZD8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TBibYXZr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si6211129ioq.4.2021.08.05.21.19.42; Thu, 05 Aug 2021 21:19:54 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TBibYXZr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235670AbhHEWPi (ORCPT + 99 others); Thu, 5 Aug 2021 18:15:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57417 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbhHEWPg (ORCPT ); Thu, 5 Aug 2021 18:15:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628201720; 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: in-reply-to:in-reply-to:references:references; bh=MCW6M0K+DPxrj754zH128zD3EsmKOhs+543ICnuoMcc=; b=TBibYXZraFrLl/DCmk0188gibAw+AebBKSU0ENkgmOU33gdxqbKmRjr8ZIzTDbGtcmLQk6 cpDxpHdtlmmazl5wgvgse73nf458Xm0dM8iEwkvrt+EkoOqZWXlYDDYbdfl/9qfX3v8CvZ U2q1TMtSv6oC+4RZhM9+Cg6nSwHQ+bI= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-6bchScy4PI6RPhYx8prZJw-1; Thu, 05 Aug 2021 18:15:19 -0400 X-MC-Unique: 6bchScy4PI6RPhYx8prZJw-1 Received: by mail-ed1-f71.google.com with SMTP id ee50-20020a0564022932b02903be1503f932so475714edb.15 for ; Thu, 05 Aug 2021 15:15:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MCW6M0K+DPxrj754zH128zD3EsmKOhs+543ICnuoMcc=; b=qc9eW9t2seLdqWG/Ei2YstkmE7NIUf0EErVKAP6UXQvCln4cmldLw8D2G9dwYVP5LM s83ybq5s+B+5GdJy/6fFRDQM/QPciKNmDA5AuG5Bqp2DaAKqH43kVD/hk8uIoM2/S6qo mYyIdi2Z+EfFnDFH5CnFNI8E48sTt7ZDkTBl7DuNV0RVMR0/QAAzLZe4BvoxRbBlDJB7 N4gJWvqY6SgDCPBF3AmIu0sbJLlxRlhNujmJhDnzr3nJc+elQEPtm55te68T2Krn0wuZ hxmbed6+CBLS1hRrEV3xiiBj8uMtb+KsGddYAPS9WHLmjX4RVCJdvRgx8J+Mb8HOXwn1 NmRg== X-Gm-Message-State: AOAM532LbLw1kyRYQ3Dce7PRpBLhK0Evz1I7KU4V2iQ8P1lfA254ei6b eFb5/xc0+oztfMqLfkVuYJy6A9kVgorlwwQ/e1bibWZnp1qtvxDwDk2mzW63IXVtLjwvNQjHOUZ pUR6yte84i1PP+onvO8sgCwhi X-Received: by 2002:a17:906:2990:: with SMTP id x16mr6795227eje.554.1628201718279; Thu, 05 Aug 2021 15:15:18 -0700 (PDT) X-Received: by 2002:a17:906:2990:: with SMTP id x16mr6795220eje.554.1628201718163; Thu, 05 Aug 2021 15:15:18 -0700 (PDT) Received: from redhat.com ([2.55.141.248]) by smtp.gmail.com with ESMTPSA id bm1sm2152353ejb.38.2021.08.05.15.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 15:15:16 -0700 (PDT) Date: Thu, 5 Aug 2021 18:15:13 -0400 From: "Michael S. Tsirkin" To: Jason Wang Cc: jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/virtio: use 'unsigned int' instead of bare 'unsigned' Message-ID: <20210805181436-mutt-send-email-mst@kernel.org> References: <20210729000402.45690-1-wangborong@cdjrlc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729000402.45690-1-wangborong@cdjrlc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 08:04:02AM +0800, Jason Wang wrote: > Replace the lazy way 'unsigned' with 'unsigned int' which is more > accurate. > > Signed-off-by: Jason Wang I don't see why this is more accurate. AFAIK it's exactly the same. > --- > 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