diff options
author | Abhijit Gangurde <abhijit.gangurde@amd.com> | 2023-10-17 19:05:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-27 14:23:24 +0300 |
commit | e3ed12f37e261a0b35cf0b4ae505adf7ea0f48ec (patch) | |
tree | 59bd70117f7bdd280b7e7564063da37dad2cbca0 /drivers/cdx/cdx.c | |
parent | f0af816834667b626dc5a3aa09cced82c46f0e62 (diff) | |
download | linux-e3ed12f37e261a0b35cf0b4ae505adf7ea0f48ec.tar.xz |
cdx: Create symbol namespaces for cdx subsystem
Create CDX_BUS and CDX_BUS_CONTROLLER symbol namespace for cdx bus
subsystem. CDX controller modules are required to import symbols from
CDX_BUS_CONTROLLER namespace and other than controller modules to
import from CDX_BUS namespace.
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://lore.kernel.org/r/20231017160505.10640-4-abhijit.gangurde@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cdx/cdx.c')
-rw-r--r-- | drivers/cdx/cdx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cdx/cdx.c b/drivers/cdx/cdx.c index 75760388f5e7..ee0913f04758 100644 --- a/drivers/cdx/cdx.c +++ b/drivers/cdx/cdx.c @@ -530,7 +530,7 @@ fail: return ret; } -EXPORT_SYMBOL_GPL(cdx_device_add); +EXPORT_SYMBOL_NS_GPL(cdx_device_add, CDX_BUS_CONTROLLER); int cdx_register_controller(struct cdx_controller *cdx) { @@ -555,7 +555,7 @@ int cdx_register_controller(struct cdx_controller *cdx) return 0; } -EXPORT_SYMBOL_GPL(cdx_register_controller); +EXPORT_SYMBOL_NS_GPL(cdx_register_controller, CDX_BUS_CONTROLLER); void cdx_unregister_controller(struct cdx_controller *cdx) { @@ -570,7 +570,7 @@ void cdx_unregister_controller(struct cdx_controller *cdx) mutex_unlock(&cdx_controller_lock); } -EXPORT_SYMBOL_GPL(cdx_unregister_controller); +EXPORT_SYMBOL_NS_GPL(cdx_unregister_controller, CDX_BUS_CONTROLLER); static int __init cdx_bus_init(void) { |