Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1270877pxv; Fri, 16 Jul 2021 05:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeeKzK6vPros8hsB17wv+/xOCX0U7dieKcpryjFk445t04/SXYOTrrwxKG5EuQVWVgWvBG X-Received: by 2002:a92:1906:: with SMTP id 6mr6277020ilz.273.1626439663649; Fri, 16 Jul 2021 05:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626439663; cv=none; d=google.com; s=arc-20160816; b=Tvqt4711vhEqLKar2ERW937jwyF0nlF0AHrQNhmZtJiJbwyR3C1x0QST2aL3imhDvo 4DklsFxJrs+Tphj16E+nVUUUYr3OQpA9ZJ2caZxY00d87yPp2bHkDyZ6rMS+Bn2YtgzX DiULURz7r7Q7BDUKGacm3egE69+ZTKrhJCJF9fD9gLkk4FL8VY73r2bC24JJ9toYg1CR a5wP8R6zRNYLBNVkpcl0z6UI+992cBJOttWndpeX/znJnd9ZuVw2PEQ9fqEd3UcPdu4I A2X7L5gtxqGGpeXnK398nT/21x3pZQ67jjnbyhMRfjzTHKiQFOyh9dYKeFWVq5Cqx6r+ 6Kiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=RrFwBcHwftmOGlaX+RHvftNO7Grb5/xpe44GRt31ozg=; b=E+Nqwss3l8EB41cem7PGtHuKPhxxnglZrUTxoKlJQ6f81QS4hjNRJ5TT4u/PO8+wF2 ez022knadJ8oFFhF18z/pgLUmk5pA6swgYEfUgUPmNbyxhjCuezjKWqFLNy2RFTFy/3r LJxpextb2oyf0eO/qHG/Thyu1G0spKBWaoEzVvLNmI7y6S+NfmYGBMWZCNduuQcpR9ml DBKIcW3Vzl8Leu6yvIayPvy9uYuxvqAibwGCNB0WCgifE5nANwVCReFSzQ5C2gxkABEV +UF5hVjFVfhNNZbhS9N4EwGv1jpVi+SnxAb3zyAXlveBUcW+Q4+3vIKsitnpkedy+Ce0 v9gw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si10297566jaq.39.2021.07.16.05.47.30; Fri, 16 Jul 2021 05:47:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234357AbhGPMtu (ORCPT + 99 others); Fri, 16 Jul 2021 08:49:50 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:35142 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232554AbhGPMtg (ORCPT ); Fri, 16 Jul 2021 08:49:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UfzNfIl_1626439597; Received: from B-LB6YLVDL-0141.local(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UfzNfIl_1626439597) by smtp.aliyun-inc.com(127.0.0.1); Fri, 16 Jul 2021 20:46:37 +0800 Subject: Re: [PATCH] virtio-balloon: Use virtio_find_vqs() helper To: Xianting Tian , mst@redhat.com, jasowang@redhat.com, david@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <1626190724-7942-1-git-send-email-xianting_tian@126.com> From: tianxianting Message-ID: Date: Fri, 16 Jul 2021 20:46:37 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1626190724-7942-1-git-send-email-xianting_tian@126.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do you interest in this patch? just little improvment:) ?? 2021/7/13 ????11:38, Xianting Tian ะด??: > From: Xianting Tian > > Use the helper virtio_find_vqs(). > > Signed-off-by: Xianting Tian > --- > drivers/virtio/virtio_balloon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > index 510e931..18e0bf3 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -531,8 +531,8 @@ static int init_vqs(struct virtio_balloon *vb) > callbacks[VIRTIO_BALLOON_VQ_REPORTING] = balloon_ack; > } > > - err = vb->vdev->config->find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, > - vqs, callbacks, names, NULL, NULL); > + err = virtio_find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, vqs, > + callbacks, names, NULL); > if (err) > return err; >