vfio/mdev: unexport mdev_bus_type
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2022 09:26:45 +0000 (11:26 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Oct 2022 18:06:58 +0000 (12:06 -0600)
mdev_bus_type is only used in mdev.ko now, so unexport it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20220923092652.100656-8-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/mdev_driver.c
drivers/vfio/mdev/mdev_private.h
include/linux/mdev.h

index 1da1ecf76a0d52915da4248fadd5a315df0c7565..5b3c94f4fb13db34e9d1a1577fce8eb0ef3a4950 100644 (file)
@@ -46,7 +46,6 @@ struct bus_type mdev_bus_type = {
        .remove         = mdev_remove,
        .match          = mdev_match,
 };
-EXPORT_SYMBOL_GPL(mdev_bus_type);
 
 /**
  * mdev_register_driver - register a new MDEV driver
index ba1b2dbddc0bc22ff6415574a1559bba134f8c30..af457b27f6074621bb182c80b7657d2b696e6f61 100644 (file)
@@ -13,6 +13,7 @@
 int  mdev_bus_register(void);
 void mdev_bus_unregister(void);
 
+extern struct bus_type mdev_bus_type;
 extern const struct attribute_group *mdev_device_groups[];
 
 #define to_mdev_type_attr(_attr)       \
index 4f558de52fd949663ae3998b5f417db17ad9ee31..6c179d2b89274db42d90416019bd6c6a351b9bc3 100644 (file)
@@ -87,8 +87,6 @@ struct mdev_driver {
        struct device_driver driver;
 };
 
-extern struct bus_type mdev_bus_type;
-
 int mdev_register_parent(struct mdev_parent *parent, struct device *dev,
                struct mdev_driver *mdev_driver, struct mdev_type **types,
                unsigned int nr_types);