Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfio/mdev: unexport mdev_bus_type

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>

authored by

Christoph Hellwig and committed by
Alex Williamson
2815fe14 cbf3bb28

+1 -3
-1
drivers/vfio/mdev/mdev_driver.c
··· 46 46 .remove = mdev_remove, 47 47 .match = mdev_match, 48 48 }; 49 - EXPORT_SYMBOL_GPL(mdev_bus_type); 50 49 51 50 /** 52 51 * mdev_register_driver - register a new MDEV driver
+1
drivers/vfio/mdev/mdev_private.h
··· 13 13 int mdev_bus_register(void); 14 14 void mdev_bus_unregister(void); 15 15 16 + extern struct bus_type mdev_bus_type; 16 17 extern const struct attribute_group *mdev_device_groups[]; 17 18 18 19 #define to_mdev_type_attr(_attr) \
-2
include/linux/mdev.h
··· 87 87 struct device_driver driver; 88 88 }; 89 89 90 - extern struct bus_type mdev_bus_type; 91 - 92 90 int mdev_register_parent(struct mdev_parent *parent, struct device *dev, 93 91 struct mdev_driver *mdev_driver, struct mdev_type **types, 94 92 unsigned int nr_types);