From 88ce0688ff5e72a3d7fbd9804cb69056c382152c Mon Sep 17 00:00:00 2001 From: Ding Wei Date: Wed, 20 Oct 2021 16:37:46 +0800 Subject: [PATCH] driver core: Export symbol: device_links_read_lock/unlock The symbols is used for rockchip video codec driver, which located driver/rockchip/video/mpp. When mpp is build for module, it will be error. Error message: ERROR: "device_links_read_unlock" [drivers/video/rockchip/mpp/rk_vcodec.ko] undefined! ERROR: "device_links_read_lock" [drivers/video/rockchip/mpp/rk_vcodec.ko] undefined! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make: *** [kernel.img] Error 2 make: *** Deleting file `kernel.img'` Change-Id: Ie412341c03ad71d257392a22249b62bedd0be58b Signed-off-by: Ding Wei --- drivers/base/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/core.c b/drivers/base/core.c index 9f9f0ed8a83e..ac565ae85d0a 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -100,6 +100,9 @@ void device_links_read_unlock(int not_used) } #endif /* !CONFIG_SRCU */ +EXPORT_SYMBOL(device_links_read_lock); +EXPORT_SYMBOL(device_links_read_unlock); + static bool device_is_ancestor(struct device *dev, struct device *target) { while (target->parent) {