Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1117967img; Fri, 22 Mar 2019 16:21:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP6SlMispTNubGoeO6GtaEURXnpLe6MTmdf+hCvrepsYei5d0gYtqaboTKnIqvuwKwlgEF X-Received: by 2002:a62:e911:: with SMTP id j17mr11820776pfh.107.1553296906994; Fri, 22 Mar 2019 16:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553296906; cv=none; d=google.com; s=arc-20160816; b=fVdh/NGfVG1vKfaFlj7pes5jqBruADPI3VUgZpvEkqBL5cGKszUvnoIBuVlEroxcqC MsVuU27YGScz77jMuSoK7+7qZ3UBd9Q23PtSXvY3QTxaw+56qNuQGglN2vqK2DX3SYNJ yVGpC2s/hEzSHydmkFsrIYk/6PIkwZnqGjA+EuRKb4LN9knp16bfI4yWAsM/bx74GRIJ nQUTgJ4JVNlROrMmCKie017gbWWcmjOi2o72JBmns2Fdp3j/FbD5yndFXEmPSULAn4G6 z4SGMK/Foypt2d1G4tjrvK2MZHVBwemUQqvsvodnkdTbpSJ2//uzxXzBOYTCuQiqAU7M Yp/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=5K7ImtZjc1tC5/2edeoeABqHg9bLcLddd7FAef/UPg8=; b=0d/pOJUTMmVIAdRko2IvIJVdCiBQVVE1pVc89RecveoJ1cLjiQka/R5t62tbbhcgJ0 Eq2Rdypgl+S9hv6RlPnHT8v4wUcnu00gLgrGueQxoqbLrhgICcrtm7M0WdyYLV/yW8pv 9ARenNdipilfwD9rIRD9e54EJxiAqYkbkIwL2UZlCZj9meFg20dAuCjgql/ieYKD+H9V 6Gfn2KwOQK1uwwPFNuxCXn+lxAKXW3/FZgMtF0/Mrlj2ndKYtS9+KlRx8P6nX7+NOgxK 3OmF92mra82njpXeU09UCVcb2j5ojM4B2AuD5/nh/hv2/w99cE7BxyvZEog8WHTz3RPg my+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si7986792pfd.212.2019.03.22.16.21.31; Fri, 22 Mar 2019 16:21:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbfCVXUt (ORCPT + 99 others); Fri, 22 Mar 2019 19:20:49 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:56801 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727539AbfCVXUt (ORCPT ); Fri, 22 Mar 2019 19:20:49 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from parav@mellanox.com) with ESMTPS (AES256-SHA encrypted); 23 Mar 2019 01:20:47 +0200 Received: from sw-mtx-036.mtx.labs.mlnx (sw-mtx-036.mtx.labs.mlnx [10.12.150.149]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x2MNKaw1007896; Sat, 23 Mar 2019 01:20:45 +0200 From: Parav Pandit To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kwankhede@nvidia.com, alex.williamson@redhat.com Cc: parav@mellanox.com Subject: [PATCH 3/8] vfio/mdev: Removed unused kref Date: Fri, 22 Mar 2019 18:20:30 -0500 Message-Id: <1553296835-37522-4-git-send-email-parav@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1553296835-37522-1-git-send-email-parav@mellanox.com> References: <1553296835-37522-1-git-send-email-parav@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused kref from the mdev_device structure. Fixes: 7b96953bc640 ("vfio: Mediated device Core driver") Signed-off-by: Parav Pandit --- drivers/vfio/mdev/mdev_core.c | 1 - drivers/vfio/mdev/mdev_private.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c index 4f213e4d..3d91f62 100644 --- a/drivers/vfio/mdev/mdev_core.c +++ b/drivers/vfio/mdev/mdev_core.c @@ -311,7 +311,6 @@ int mdev_device_create(struct kobject *kobj, struct device *dev, uuid_le uuid) mutex_unlock(&mdev_list_lock); mdev->parent = parent; - kref_init(&mdev->ref); mdev->dev.parent = dev; mdev->dev.bus = &mdev_bus_type; diff --git a/drivers/vfio/mdev/mdev_private.h b/drivers/vfio/mdev/mdev_private.h index b5819b7..84b2b6c 100644 --- a/drivers/vfio/mdev/mdev_private.h +++ b/drivers/vfio/mdev/mdev_private.h @@ -30,7 +30,6 @@ struct mdev_device { struct mdev_parent *parent; uuid_le uuid; void *driver_data; - struct kref ref; struct list_head next; struct kobject *type_kobj; bool active; -- 1.8.3.1