Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4165708ybh; Tue, 6 Aug 2019 07:20:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW3lPl5tfeLfaWQo8zXwGWWhvzccQJOR9UVQNTCONaJFuYrQ0O0TgA1vBwOYl1LNVKNQU7 X-Received: by 2002:a17:902:9b81:: with SMTP id y1mr3619615plp.194.1565101223048; Tue, 06 Aug 2019 07:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565101223; cv=none; d=google.com; s=arc-20160816; b=g0dxTq/Tj+K8oP0OrKWYNJjO9+ybcvTjRVXM1lWbJNhnd/tKepA5JqyBxB+yZV3+SF PyDfV3m9qrjo5MBGp/p6qhV3xpPKbDWhGYXg3drqrmeXVsTnDyC2tbM4LRcuz4X7TAd3 W1h6hCsEyWLkNXkKjQ3ScEwOH3gnMH7qM8s3AnA1Z7c6kWAMKNICLnR4Xu8PvcVE5qL2 ckKqf7IMuBvc3etO0glN4pViRyz7etng1kANOW081ExvrVluI1+uq+Smd+oIOEb+IxwN ooWKfSm1o/HMN3icuhPZImUtxpkieUa6IEgmqupyMVK6PFvaujWDG1AwZf5XPj5/NcvK 92Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lAhRkVtDDQglzm/y2e1F46WrkVvqS/MDROSyXmYBps4=; b=qDzIY4MGB7o/D1CrrrKeN5UeNivOHlp+HmU4kjbVwvLRWwM8dSNqLw7cieYomDbgkW RYIbMUDomnv1om2u0hXccfqzAa77oD5+DBN9SiyxrbvcjXU0k+ckK6fNqcV2R3uG9XIv K6wJo3jN3OGftNlp8vR3LnbFIBKSRP3PRlToltnQ9AEI0aN91veB73ROzJRc/I+vhGbH k+NJ69AgoqWcWv3QT0yv5ou4D/aaq1CMasHsAwsxKq7SygodALah0iBGPaVgc1YT0iDH g95mvL9L/wNPKLc9ixgr//9ZJK5XzLq07nRBr+ENWC3bC8rXkdUb8TnnDonk4UVGayr+ +h3A== 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 t9si14789967pji.69.2019.08.06.07.20.06; Tue, 06 Aug 2019 07:20:23 -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 S1733017AbfHFOSq (ORCPT + 99 others); Tue, 6 Aug 2019 10:18:46 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:46736 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732994AbfHFOSq (ORCPT ); Tue, 6 Aug 2019 10:18:46 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from parav@mellanox.com) with ESMTPS (AES256-SHA encrypted); 6 Aug 2019 17:18:42 +0300 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 x76EIa7j019368; Tue, 6 Aug 2019 17:18:40 +0300 From: Parav Pandit To: kvm@vger.kernel.org, wankhede@nvidia.com, linux-kernel@vger.kernel.org Cc: parav@mellanox.com, alex.williamson@redhat.com, cohuck@redhat.com, cjia@nvidia.com Subject: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID Date: Tue, 6 Aug 2019 09:18:26 -0500 Message-Id: <20190806141826.52712-3-parav@mellanox.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190806141826.52712-1-parav@mellanox.com> References: <20190802065905.45239-1-parav@mellanox.com> <20190806141826.52712-1-parav@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no single production driver who is interested in mdev device uuid. Currently UUID is mainly used to derive a device name. Additionally mdev device name is already available using core kernel API dev_name(). Hence removed unused exported symbol. Signed-off-by: Parav Pandit --- Changelog: v0->v1: - Updated commit log to address comments from Cornelia --- drivers/vfio/mdev/mdev_core.c | 6 ------ include/linux/mdev.h | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c index b558d4cfd082..c2b809cbe59f 100644 --- a/drivers/vfio/mdev/mdev_core.c +++ b/drivers/vfio/mdev/mdev_core.c @@ -57,12 +57,6 @@ struct mdev_device *mdev_from_dev(struct device *dev) } EXPORT_SYMBOL(mdev_from_dev); -const guid_t *mdev_uuid(struct mdev_device *mdev) -{ - return &mdev->uuid; -} -EXPORT_SYMBOL(mdev_uuid); - /* Should be called holding parent_list_lock */ static struct mdev_parent *__find_parent_device(struct device *dev) { diff --git a/include/linux/mdev.h b/include/linux/mdev.h index 0ce30ca78db0..375a5830c3d8 100644 --- a/include/linux/mdev.h +++ b/include/linux/mdev.h @@ -131,7 +131,6 @@ struct mdev_driver { void *mdev_get_drvdata(struct mdev_device *mdev); void mdev_set_drvdata(struct mdev_device *mdev, void *data); -const guid_t *mdev_uuid(struct mdev_device *mdev); extern struct bus_type mdev_bus_type; -- 2.21.0.777.g83232e3864