Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3273357rwb; Mon, 15 Aug 2022 22:57:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR6SHKq8KnCnI+Yw3o+iDfZQcMStPSK16dhkraEoIgS2QFqfpmkfoFoQPtkmdXpboXllC+l4 X-Received: by 2002:a17:907:8a04:b0:730:baa1:ac82 with SMTP id sc4-20020a1709078a0400b00730baa1ac82mr12202634ejc.737.1660629446137; Mon, 15 Aug 2022 22:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660629446; cv=none; d=google.com; s=arc-20160816; b=wymUvYijp0xScYYVcJnUsY/6LGOakTkriCS8itp7VKpSyNg1pkbIpKhugMDk5q0kbQ 9WJdaLvPndKdVxTchscaVx9yuNQrEXocS2PnI29lwam7mHVIOqb2e9qKIMapyzvV62wX b6ucs/lUOtK4XSyGbK8c+EZjVg8qE7klwgz5YYfAvXb6IODWPQioqyA3iZMEf3klOAfl 2Kp3InuOzOiOGqmWTgEqVOHpCwnOSu+UV09GzItTM+zMQy4yO3UR5MdKdJWSRptwEskL qf6XRyPv7j8jK/FMeoZ/MIbUXQTUWbwM6O/i4CC5QUc4GoF/Uqab32laoLgyJCynGbQx mz8g== 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=bnInJhTNmcRkk5WIZQp/adh2w/55qWjBovtngHxo1PM=; b=t1JccTxV0pNAxxOOxP68WgZPZAoh+QuNWzxVupEc8VtkCZ9a5MjS+Y1BF//LpSM2MT W2lamUW8hAnKHulslY208tIalCac4juUCs2oH661ptVmhdX1dJ46tofRNplUHB6lIgPS CZBTI5HmgHSX1d8ml6ZqCJmcCH/cPVa9rQiRd+Y+NB+OolP5GEl+InZxWfDMpsgB3DJ0 MTsDvtL6J/ZrMQAR71PS2fO3NaqnmEIMHaFT6JzDHsvZpl02g2e5Gf56A31QcGU/1lba cT+Si9tHlfbnbxA+JiYDd0TvSVsfnpYMVFLwlVkjCinbMqhgYQm23NuirgRinyrtkSU6 xx0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EHiMupOJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga23-20020a1709070c1700b007314ba0d5cdsi9547247ejc.646.2022.08.15.22.57.00; Mon, 15 Aug 2022 22:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EHiMupOJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232695AbiHPF1o (ORCPT + 99 others); Tue, 16 Aug 2022 01:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231756AbiHPF1L (ORCPT ); Tue, 16 Aug 2022 01:27:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96EB724B for ; Mon, 15 Aug 2022 15:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660600838; 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=bnInJhTNmcRkk5WIZQp/adh2w/55qWjBovtngHxo1PM=; b=EHiMupOJ2icYjOXVQ8sFxh3ko4sXMrIsr1zUjvxgs2aZ2xlNXKOVwuIbtfqcTrgo9pEjNB +9h++a7QLDe7Vq4zfaMRKjME/FqhPMgaBrWboaHEQrVlh2BvP96jVbtn13Za7qCsvvuiNj ZADl3pbeZ7R/Ve5a/OJ38NwC46IhjlQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-270-Gstdbta0PAyhY_TmsxDQ3A-1; Mon, 15 Aug 2022 18:00:37 -0400 X-MC-Unique: Gstdbta0PAyhY_TmsxDQ3A-1 Received: by mail-wm1-f69.google.com with SMTP id a17-20020a05600c349100b003a545125f6eso9253259wmq.4 for ; Mon, 15 Aug 2022 15:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=bnInJhTNmcRkk5WIZQp/adh2w/55qWjBovtngHxo1PM=; b=hLeOPUBSywm/wWfPIXxhBVdkqZhUGzjTA3wnL59A+quAwc1+QRLaN5h4Icel6nEqGf lnort6pPYIdYmyeqjWcKy0hUHvPZ1oyTiLYJVwsQ6o7bCJKGQRxdX8JUxU+VOiAFy9+o a6DMpI+xhtC5nQ8fMS+kL0OoYZvKGB/dcueF/8qTYMsVG5GYFzvfqwOFIAY2OOgdt7VS XL7cHm2VY9u+kSezzJy669eeb2FDdyO9RUzDz5pOdp4jAOaDpBmOjga0UJsG+kv9zKbo oihDUE+Z5CGdAp4ZfeY4Cgxlcv4QrK6JurwQmz/xmQfqq23ofrAKh0gekEYO1Gd1jS3Z Wu5Q== X-Gm-Message-State: ACgBeo3h9PhGix9X/jR5sVllDaCbr4Shv0zkxUQm/QoPtCKSOA1GZ9Rf l/hZAegs5EqGZwFCKw99kFtEKPJ9TtCh1pGYJno33aorSHj9K7qTmdnATx3yaTGgFkVrbmvwmF2 ZEGhZlndzPefUVjW2VmG8SqKah5gRQef9HjiJgovzE3W18wCn79qPmEpcZkt4MtrQK8sfPg== X-Received: by 2002:adf:fe0d:0:b0:220:5df9:e5cf with SMTP id n13-20020adffe0d000000b002205df9e5cfmr10037606wrr.332.1660600836275; Mon, 15 Aug 2022 15:00:36 -0700 (PDT) X-Received: by 2002:adf:fe0d:0:b0:220:5df9:e5cf with SMTP id n13-20020adffe0d000000b002205df9e5cfmr10037579wrr.332.1660600835925; Mon, 15 Aug 2022 15:00:35 -0700 (PDT) Received: from redhat.com ([2.55.43.215]) by smtp.gmail.com with ESMTPSA id r187-20020a1c44c4000000b003a5f2cc2f1dsm6101446wma.42.2022.08.15.15.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 15:00:35 -0700 (PDT) Date: Mon, 15 Aug 2022 18:00:31 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Xuan Zhuo , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, Linus Torvalds , Jens Axboe , James Bottomley , "Martin K. Petersen" , Guenter Roeck , Greg KH Subject: [PATCH v3 2/5] virtio: Revert "virtio: add helper virtio_find_vqs_ctx_size()" Message-ID: <20220815215938.154999-3-mst@redhat.com> References: <20220815215938.154999-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815215938.154999-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit fe3dc04e31aa51f91dc7f741a5f76cc4817eb5b4: the API is now unused and in fact can't be implemented on top of a legacy device. Fixes: fe3dc04e31aa ("virtio: add helper virtio_find_vqs_ctx_size()") Cc: "Xuan Zhuo" Signed-off-by: Michael S. Tsirkin --- include/linux/virtio_config.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 6adff09f7170..888f7e96f0c7 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -241,18 +241,6 @@ int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, ctx, desc); } -static inline -int virtio_find_vqs_ctx_size(struct virtio_device *vdev, u32 nvqs, - struct virtqueue *vqs[], - vq_callback_t *callbacks[], - const char * const names[], - u32 sizes[], - const bool *ctx, struct irq_affinity *desc) -{ - return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, sizes, - ctx, desc); -} - /** * virtio_synchronize_cbs - synchronize with virtqueue callbacks * @vdev: the device -- MST