[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201126150138.159896-1-chanho61.park@samsung.com>
Date: Fri, 27 Nov 2020 00:01:38 +0900
From: Chanho Park <parkch98@...il.com>
To: gregkh@...uxfoundation.org, rafael@...nel.org
Cc: linux-kernel@...r.kernel.org,
Chanho Park <chanho61.park@...sung.com>
Subject: [PATCH] drivers core: export symbols for device hotplug
To support module build for cpu hotplug driver on type-1 hypervisor
such as drivers/xen/cpu_hotplug.c, we need to export below four symbols.
lock_device_hotplug / unlock_device_hotplug
device_online / device_offline
Signed-off-by: Chanho Park <chanho61.park@...sung.com>
---
drivers/base/core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index d661ada1518f..1bfd0c54a778 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1586,11 +1586,13 @@ void lock_device_hotplug(void)
{
mutex_lock(&device_hotplug_lock);
}
+EXPORT_SYMBOL_GPL(lock_device_hotplug);
void unlock_device_hotplug(void)
{
mutex_unlock(&device_hotplug_lock);
}
+EXPORT_SYMBOL_GPL(unlock_device_hotplug);
int lock_device_hotplug_sysfs(void)
{
@@ -3419,6 +3421,7 @@ int device_offline(struct device *dev)
return ret;
}
+EXPORT_SYMBOL_GPL(device_offline);
/**
* device_online - Put the device back online after successful device_offline().
@@ -3450,6 +3453,7 @@ int device_online(struct device *dev)
return ret;
}
+EXPORT_SYMBOL_GPL(device_online);
struct root_device {
struct device dev;
--
2.23.0
Powered by blists - more mailing lists