Skip to content

Commit d908084

Browse files
debox1jwrdegoede
authored andcommitted
platform/x86/intel/pmt: Add INTEL_PMT module namespace
Since the currently exported symbols in pmt_class are only used by other Intel PMT drivers, create an INTEL_PMT module namespace for them. Signed-off-by: David E. Box <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 3f95ecf commit d908084

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

drivers/platform/x86/intel/pmt/class.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bool intel_pmt_is_early_client_hw(struct device *dev)
3333
*/
3434
return !!(ivdev->info->quirks & VSEC_QUIRK_EARLY_HW);
3535
}
36-
EXPORT_SYMBOL_GPL(intel_pmt_is_early_client_hw);
36+
EXPORT_SYMBOL_NS_GPL(intel_pmt_is_early_client_hw, INTEL_PMT);
3737

3838
static inline int
3939
pmt_memcpy64_fromio(void *to, const u64 __iomem *from, size_t count)
@@ -327,7 +327,7 @@ int intel_pmt_dev_create(struct intel_pmt_entry *entry, struct intel_pmt_namespa
327327
return intel_pmt_dev_register(entry, ns, dev);
328328

329329
}
330-
EXPORT_SYMBOL_GPL(intel_pmt_dev_create);
330+
EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_create, INTEL_PMT);
331331

332332
void intel_pmt_dev_destroy(struct intel_pmt_entry *entry,
333333
struct intel_pmt_namespace *ns)
@@ -343,7 +343,7 @@ void intel_pmt_dev_destroy(struct intel_pmt_entry *entry,
343343
device_unregister(dev);
344344
xa_erase(ns->xa, entry->devid);
345345
}
346-
EXPORT_SYMBOL_GPL(intel_pmt_dev_destroy);
346+
EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_destroy, INTEL_PMT);
347347

348348
static int __init pmt_class_init(void)
349349
{

drivers/platform/x86/intel/pmt/crashlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,4 @@ module_exit(pmt_crashlog_exit);
328328
MODULE_AUTHOR("Alexander Duyck <[email protected]>");
329329
MODULE_DESCRIPTION("Intel PMT Crashlog driver");
330330
MODULE_LICENSE("GPL v2");
331+
MODULE_IMPORT_NS(INTEL_PMT);

drivers/platform/x86/intel/pmt/telemetry.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,4 @@ module_exit(pmt_telem_exit);
160160
MODULE_AUTHOR("David E. Box <[email protected]>");
161161
MODULE_DESCRIPTION("Intel PMT Telemetry driver");
162162
MODULE_LICENSE("GPL v2");
163+
MODULE_IMPORT_NS(INTEL_PMT);

0 commit comments

Comments
 (0)