Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4031333pxv; Tue, 13 Jul 2021 09:11:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiuP323a7jloGPbRipEmG4GLfXiZAaxmS/m5oyIPX+KFsHpBFr7lklJMrikn6KcPvMQfo5 X-Received: by 2002:a17:906:7151:: with SMTP id z17mr6724810ejj.166.1626192691331; Tue, 13 Jul 2021 09:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626192691; cv=none; d=google.com; s=arc-20160816; b=NwZUS5A5aiN4JB12rB9FRKeXUUFegvbwS5FarwejBz+as29O3ACuCzLQhGIt3suMhO VdIX1rWsUA24B4nHVi1IyfAxDeJppyCu/ljXNuXGNuTIRTFyQ29VR6Vy9VTWy7/aFZKa y6k2pR9OtAJyBL5q7p5aaGaHpFh5HNUd7d11emsIFDiOG+cQLCItLFih7TEl9vDX+EbU vyX1Jj21nitf79hJvtHWNM0Tpq9osC+UYnTQeEapUjSmGixtKYr9u/LFsteMaYduP7y5 nALvfSH+2tftGCZvG5EJG/K0Lax7WIGEFPBMy8Xcxrh0G/idYW1uspIO05vKCvy+mVAM C1Aw== 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 :dkim-signature; bh=hWrXsZqz2S9WPoBszQNOR1ZBbtfHZp1AgMaPc3k8gsI=; b=U6N65gPKN+ZxSwAEHBLpweHyc+oK5QG18nDXPqEJFVfdGhp9DXR2IndwWRqDHEywrt MY+XfBQP/5tFN0Kdf21kkC53GmVMdUPILnreeP7gdByl9nlI+dQfNPai+DINXmjjvDZY OGHrXHAVs+9QuA977quNFGt/9Ihm9BK9jCgYq0iLWcXVbGnZF9WmMar9fnW0vmoHkNcE 1CDyZ8pP1ZRPadzRsAw/IVkdrr1fLzY5DtGRLhx16AeMR4iT+X84E9DJ18D3yXO0JwyP VmSbW41DPudnXGdBf3Ex3na/pHvFuACkRlL8Lhe09YoN9dQrlcDagaC/6UDOPGe/j/w3 0aXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=QcyF4cFM; 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=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hg2si14164814ejc.326.2021.07.13.09.11.08; Tue, 13 Jul 2021 09:11:31 -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=@126.com header.s=s110527 header.b=QcyF4cFM; 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=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbhGMQMq (ORCPT + 99 others); Tue, 13 Jul 2021 12:12:46 -0400 Received: from m15114.mail.126.com ([220.181.15.114]:39292 "EHLO m15114.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbhGMQMq (ORCPT ); Tue, 13 Jul 2021 12:12:46 -0400 X-Greylist: delayed 1814 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Jul 2021 12:12:36 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=hWrXsZqz2S9WPoBszQ NOR1ZBbtfHZp1AgMaPc3k8gsI=; b=QcyF4cFMae2jfAxYumTa9v6LuCvK8ocG0z osbelUvnbyVZKlxeX//Rb59rD9EGeMwKT3hGki3PbXHdvEgZ7P2s4gfkWgrbOCIX YTQKy3RPQrdnPEEb+AUryHTs2kz+uhcMk+WmCDWAQr2vEXlcP0RT5A6CzqDk3Qzs m9evvUTPg= Received: from 192.168.137.133 (unknown [112.10.74.16]) by smtp7 (Coremail) with SMTP id DsmowAA3sDuFs+1gDe1hSQ--.4116S3; Tue, 13 Jul 2021 23:38:47 +0800 (CST) From: Xianting Tian To: mst@redhat.com, jasowang@redhat.com, david@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH] virtio-balloon: Use virtio_find_vqs() helper Date: Tue, 13 Jul 2021 11:38:44 -0400 Message-Id: <1626190724-7942-1-git-send-email-xianting_tian@126.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: DsmowAA3sDuFs+1gDe1hSQ--.4116S3 X-Coremail-Antispam: 1Uf129KBjvdXoWruF18Xw4xWF1kuw4Uuw43trb_yoWfJFbEyr 4Ivryxtr98GF4jkrWDur4Fvryaka48uF9rZ39Yy3WfJFW7Z3WjvasFgr1UJ3W7WFWUAa9x GF45urs7uw4IkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8nSdDUUUUU== X-Originating-IP: [112.10.74.16] X-CM-SenderInfo: h0ld03plqjs3xldqqiyswou0bp/1tbizgfOpF8RNJL9zQAAs7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 1.8.3.1