提交 2815fe14 编写于 作者: C Christoph Hellwig 提交者: Alex Williamson

vfio/mdev: unexport mdev_bus_type

mdev_bus_type is only used in mdev.ko now, so unexport it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: NKevin Tian <kevin.tian@intel.com>
Reviewed-by: NKirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20220923092652.100656-8-hch@lst.deSigned-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 cbf3bb28
...@@ -46,7 +46,6 @@ struct bus_type mdev_bus_type = { ...@@ -46,7 +46,6 @@ struct bus_type mdev_bus_type = {
.remove = mdev_remove, .remove = mdev_remove,
.match = mdev_match, .match = mdev_match,
}; };
EXPORT_SYMBOL_GPL(mdev_bus_type);
/** /**
* mdev_register_driver - register a new MDEV driver * mdev_register_driver - register a new MDEV driver
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
int mdev_bus_register(void); int mdev_bus_register(void);
void mdev_bus_unregister(void); void mdev_bus_unregister(void);
extern struct bus_type mdev_bus_type;
extern const struct attribute_group *mdev_device_groups[]; extern const struct attribute_group *mdev_device_groups[];
#define to_mdev_type_attr(_attr) \ #define to_mdev_type_attr(_attr) \
......
...@@ -87,8 +87,6 @@ struct mdev_driver { ...@@ -87,8 +87,6 @@ struct mdev_driver {
struct device_driver driver; struct device_driver driver;
}; };
extern struct bus_type mdev_bus_type;
int mdev_register_parent(struct mdev_parent *parent, struct device *dev, int mdev_register_parent(struct mdev_parent *parent, struct device *dev,
struct mdev_driver *mdev_driver, struct mdev_type **types, struct mdev_driver *mdev_driver, struct mdev_type **types,
unsigned int nr_types); unsigned int nr_types);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册