Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1098362pxv; Thu, 22 Jul 2021 22:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrSNGjqiEJpMnOIvW2vQgAoeHIS6yp9z2iLHEq0ZdsPzF033IOUlBgXmLCsi4SMsxUoqT6 X-Received: by 2002:a05:6638:2416:: with SMTP id z22mr2714887jat.57.1627019053696; Thu, 22 Jul 2021 22:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627019053; cv=none; d=google.com; s=arc-20160816; b=P37HFXr7Qp/uNAUKQbVroU8vvTC2CM6d3m4kV96EthWOSDTUp7nbhZIlYqbJl7nStA fCP2iGyMTBPiaN1rnejKaFXE2l29YQudnTZ7LY9KveHAh+uNvHKfF+VB3k3TbcH1Xf61 3feMr2DUbaeGuIN4c1SmU6yGUTvqTpAD/aejST6W9FJsE3/dX10M5OxYM4WEw0FQUnbX Z7ZamcWXuLXBYnn7LUnl6rAGZkGJVIJwtMxodE13QaGQq8ncfY4zvyNzrop+1ELvC8fQ yx3fk+1t543KPwIr2zKCAxDl7zmIp86YpHv7eOAWm2jOGUTpnCGqPNDN1RylOLf12X4e rU9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=6342HOQrO805LYmnkhjXdsVUePrQJ4ZtmoOUlZbLchw=; b=YHK3dXDQW0rIKPcNLQvY1w7AoHcxJtSK6rsPxA+j54dSMyyWUSjqDGqzBN63OWKXIK npGLjpXlw3MprPyeqsFhpRfu9Y/wJLpi/m2K3q3bZAHq6WaY5E8FXkz7dy+aLunL0Iby sFPZK+MuedjgvZxHQo8N3ieJI9cnWlA8N7nxAk68RA2SLvGNoIC7Vuy3OM8tsfPRuNVC 2lCq0s1fPVt6F00lzilDZb2aHRyXqtVz1iI7JF8xDx66x7tcfHS37jmSebhfCA7YEr0b xPR7y9pbv2sU688aGtkW7aBKlBnIJez1JVAkuwZ0bXFReZy+4GZkM24o9AQXfnRIdebk v1oQ== 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 y11si16240382jai.105.2021.07.22.22.44.02; Thu, 22 Jul 2021 22:44:13 -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 S233771AbhGWFCm (ORCPT + 99 others); Fri, 23 Jul 2021 01:02:42 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:59488 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233738AbhGWFCl (ORCPT ); Fri, 23 Jul 2021 01:02:41 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;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_---0UggRKYB_1627018980; Received: from localhost(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UggRKYB_1627018980) by smtp.aliyun-inc.com(127.0.0.1); Fri, 23 Jul 2021 13:43:14 +0800 From: Xianting Tian To: mst@redhat.com, david@redhat.com, jasowang@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH v2] virtio-balloon: Use virtio_find_vqs() helper Date: Fri, 23 Jul 2021 13:42:59 +0800 Message-Id: <20210723054259.2779-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the helper virtio_find_vqs(). Signed-off-by: Xianting Tian Reviewed-by: David Hildenbrand Acked-by: Jason Wang --- 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 47dce91f7..c22ff0117 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; -- 2.17.1