From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47F89C433E2 for ; Thu, 17 Sep 2020 11:27:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9F4A21974 for ; Thu, 17 Sep 2020 11:27:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bFYEl+3x" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbgIQL1S (ORCPT ); Thu, 17 Sep 2020 07:27:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29137 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbgIQL0p (ORCPT ); Thu, 17 Sep 2020 07:26:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600342004; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fqujnUHVQWeL8Ql0HkiOFkbBms+emzP3B/p5Uh6YVNg=; b=bFYEl+3xCIuZk8pVidsrNLw6/+aQvCzqzI+cu4cLQAjK0GYjFxDxtEdg4A20P2zxvekKNb 4p9IOD7AOGJeaU6krosg1UbmFOZB5UtRWbAk2aiN3QaWBqHLADJpv5BpvTc6txkYNBsI2P sRuW3TKpnkIuin5Da2VgZiYSiQDS7CA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-586-mP7mHFr4NauNqqgNMk_Q3A-1; Thu, 17 Sep 2020 07:26:42 -0400 X-MC-Unique: mP7mHFr4NauNqqgNMk_Q3A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6E78DADC00; Thu, 17 Sep 2020 11:26:41 +0000 (UTC) Received: from gondolin (ovpn-113-19.ams2.redhat.com [10.36.113.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B8AF7880B; Thu, 17 Sep 2020 11:26:37 +0000 (UTC) Date: Thu, 17 Sep 2020 13:26:34 +0200 From: Cornelia Huck To: Zenghui Yu Cc: , , , Subject: Re: [PATCH 1/2] vfio/pci: Remove redundant declaration of vfio_pci_driver Message-ID: <20200917132634.4df6ff60.cohuck@redhat.com> In-Reply-To: <20200917033128.872-1-yuzenghui@huawei.com> References: <20200917033128.872-1-yuzenghui@huawei.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, 17 Sep 2020 11:31:27 +0800 Zenghui Yu wrote: > It was added by commit 137e5531351d ("vfio/pci: Add sriov_configure > support") and actually unnecessary. Remove it. > > Signed-off-by: Zenghui Yu > --- > drivers/vfio/pci/vfio_pci.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c > index 1ab1f5cda4ac..da68e2f86622 100644 > --- a/drivers/vfio/pci/vfio_pci.c > +++ b/drivers/vfio/pci/vfio_pci.c > @@ -1862,7 +1862,6 @@ static const struct vfio_device_ops vfio_pci_ops = { > > static int vfio_pci_reflck_attach(struct vfio_pci_device *vdev); > static void vfio_pci_reflck_put(struct vfio_pci_reflck *reflck); > -static struct pci_driver vfio_pci_driver; > > static int vfio_pci_bus_notifier(struct notifier_block *nb, > unsigned long action, void *data) Reviewed-by: Cornelia Huck