diff options
author | Dan Williams <dan.j.williams@intel.com> | 2021-11-12 16:32:58 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-11-15 11:02:59 -0800 |
commit | affec782742e08a7469ef81d7d0a4ae9d1345dfd (patch) | |
tree | a80534a2fb99216116a34ca6f2a0f5c09d55989d /drivers/cxl/core/mbox.c | |
parent | 5e2411ae8071612396cd25017e29f9ce0662a5ff (diff) |
cxl/core: Convert to EXPORT_SYMBOL_NS_GPL
It turns out that the usb example of specifying the subsystem namespace
at build time is not preferred. The rationale for that preference has
become more apparent as CXL patches with plain EXPORT_SYMBOL_GPL beg the
question, "why would any code other than CXL care about this symbol?".
Make the namespace explicit.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/163676356810.3618264.601632777702192938.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core/mbox.c')
-rw-r--r-- | drivers/cxl/core/mbox.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index 0806ba8d38cb..be61a0d8016b 100644 --- a/drivers/cxl/core/mbox.c +++ b/drivers/cxl/core/mbox.c @@ -182,7 +182,7 @@ int cxl_mbox_send_cmd(struct cxl_dev_state *cxlds, u16 opcode, void *in, return 0; } -EXPORT_SYMBOL_GPL(cxl_mbox_send_cmd); +EXPORT_SYMBOL_NS_GPL(cxl_mbox_send_cmd, CXL); static bool cxl_mem_raw_command_allowed(u16 opcode) { @@ -624,7 +624,7 @@ out: kvfree(gsl); return rc; } -EXPORT_SYMBOL_GPL(cxl_enumerate_cmds); +EXPORT_SYMBOL_NS_GPL(cxl_enumerate_cmds, CXL); /** * cxl_mem_get_partition_info - Get partition info @@ -709,7 +709,7 @@ int cxl_dev_state_identify(struct cxl_dev_state *cxlds) return 0; } -EXPORT_SYMBOL_GPL(cxl_dev_state_identify); +EXPORT_SYMBOL_NS_GPL(cxl_dev_state_identify, CXL); int cxl_mem_create_range_info(struct cxl_dev_state *cxlds) { @@ -748,7 +748,7 @@ int cxl_mem_create_range_info(struct cxl_dev_state *cxlds) return 0; } -EXPORT_SYMBOL_GPL(cxl_mem_create_range_info); +EXPORT_SYMBOL_NS_GPL(cxl_mem_create_range_info, CXL); struct cxl_dev_state *cxl_dev_state_create(struct device *dev) { @@ -765,7 +765,7 @@ struct cxl_dev_state *cxl_dev_state_create(struct device *dev) return cxlds; } -EXPORT_SYMBOL_GPL(cxl_dev_state_create); +EXPORT_SYMBOL_NS_GPL(cxl_dev_state_create, CXL); static struct dentry *cxl_debugfs; |