Skip to content

Commit a0caa19

Browse files
Jeff Johnsondavejiang
authored andcommitted
cxl: add missing MODULE_DESCRIPTION() macros
make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/core/cxl_core.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_pci.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_mem.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_acpi.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_pmem.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_port.o Add the missing invocations of the MODULE_DESCRIPTION() macro. Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://patch.msgid.link/20240607-md-drivers-cxl-v2-1-0c61d95ee7a7@quicinc.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 675e979 commit a0caa19

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

drivers/cxl/acpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ static void __exit cxl_acpi_exit(void)
921921
/* load before dax_hmem sees 'Soft Reserved' CXL ranges */
922922
subsys_initcall(cxl_acpi_init);
923923
module_exit(cxl_acpi_exit);
924+
MODULE_DESCRIPTION("CXL ACPI: Platform Support");
924925
MODULE_LICENSE("GPL v2");
925926
MODULE_IMPORT_NS(CXL);
926927
MODULE_IMPORT_NS(ACPI);

drivers/cxl/core/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,5 +2356,6 @@ static void cxl_core_exit(void)
23562356

23572357
subsys_initcall(cxl_core_init);
23582358
module_exit(cxl_core_exit);
2359+
MODULE_DESCRIPTION("CXL: Core Compute Express Link support");
23592360
MODULE_LICENSE("GPL v2");
23602361
MODULE_IMPORT_NS(CXL);

drivers/cxl/mem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ static struct cxl_driver cxl_mem_driver = {
252252

253253
module_cxl_driver(cxl_mem_driver);
254254

255+
MODULE_DESCRIPTION("CXL: Memory Expansion");
255256
MODULE_LICENSE("GPL v2");
256257
MODULE_IMPORT_NS(CXL);
257258
MODULE_ALIAS_CXL(CXL_DEVICE_MEMORY_EXPANDER);

drivers/cxl/pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,5 +1066,6 @@ static void __exit cxl_pci_driver_exit(void)
10661066

10671067
module_init(cxl_pci_driver_init);
10681068
module_exit(cxl_pci_driver_exit);
1069+
MODULE_DESCRIPTION("CXL: PCI manageability");
10691070
MODULE_LICENSE("GPL v2");
10701071
MODULE_IMPORT_NS(CXL);

drivers/cxl/pmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ static __exit void cxl_pmem_exit(void)
453453
cxl_driver_unregister(&cxl_nvdimm_bridge_driver);
454454
}
455455

456+
MODULE_DESCRIPTION("CXL PMEM: Persistent Memory Support");
456457
MODULE_LICENSE("GPL v2");
457458
module_init(cxl_pmem_init);
458459
module_exit(cxl_pmem_exit);

drivers/cxl/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ static struct cxl_driver cxl_port_driver = {
209209
};
210210

211211
module_cxl_driver(cxl_port_driver);
212+
MODULE_DESCRIPTION("CXL: Port enumeration and services");
212213
MODULE_LICENSE("GPL v2");
213214
MODULE_IMPORT_NS(CXL);
214215
MODULE_ALIAS_CXL(CXL_DEVICE_PORT);

0 commit comments

Comments
 (0)