Skip to content

Commit 13a7871

Browse files
committed
Merge tag 'libnvdimm-for-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm updates from Ira Weiny: - One small cleanup to use sizeof(*pointer) - Add MODULE_DESCRIPTIONS() to eliminate make W=1 warnings * tag 'libnvdimm-for-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: testing: nvdimm: Add MODULE_DESCRIPTION() macros testing: nvdimm: iomap: add MODULE_DESCRIPTION() dax: add missing MODULE_DESCRIPTION() macros nvdimm: add missing MODULE_DESCRIPTION() macros ACPI: NFIT: add missing MODULE_DESCRIPTION() macro nvdimm/btt: use sizeof(*pointer) instead of sizeof(type)
2 parents f557af0 + b0d478e commit 13a7871

File tree

16 files changed

+18
-2
lines changed

16 files changed

+18
-2
lines changed

drivers/acpi/nfit/core.c

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

35323532
module_init(nfit_init);
35333533
module_exit(nfit_exit);
3534+
MODULE_DESCRIPTION("ACPI NVDIMM Firmware Interface Table (NFIT) driver");
35343535
MODULE_LICENSE("GPL v2");
35353536
MODULE_AUTHOR("Intel Corporation");

drivers/dax/cxl.c

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

4444
module_cxl_driver(cxl_dax_region_driver);
4545
MODULE_ALIAS_CXL(CXL_DEVICE_DAX_REGION);
46+
MODULE_DESCRIPTION("CXL DAX: direct access to CXL regions");
4647
MODULE_LICENSE("GPL");
4748
MODULE_AUTHOR("Intel Corporation");
4849
MODULE_IMPORT_NS(CXL);

drivers/dax/device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ static void __exit dax_exit(void)
482482
}
483483

484484
MODULE_AUTHOR("Intel Corporation");
485+
MODULE_DESCRIPTION("Device DAX: direct access device driver");
485486
MODULE_LICENSE("GPL v2");
486487
module_init(dax_init);
487488
module_exit(dax_exit);

drivers/dax/hmem/hmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,6 @@ MODULE_SOFTDEP("pre: cxl_acpi");
168168

169169
MODULE_ALIAS("platform:hmem*");
170170
MODULE_ALIAS("platform:hmem_platform*");
171+
MODULE_DESCRIPTION("HMEM DAX: direct access to 'specific purpose' memory");
171172
MODULE_LICENSE("GPL v2");
172173
MODULE_AUTHOR("Intel Corporation");

drivers/dax/kmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static void __exit dax_kmem_exit(void)
299299
}
300300

301301
MODULE_AUTHOR("Intel Corporation");
302+
MODULE_DESCRIPTION("KMEM DAX: map dax-devices as System-RAM");
302303
MODULE_LICENSE("GPL v2");
303304
module_init(dax_kmem_init);
304305
module_exit(dax_kmem_exit);

drivers/dax/pmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static void __exit dax_pmem_exit(void)
9494
}
9595
module_exit(dax_pmem_exit);
9696

97+
MODULE_DESCRIPTION("PMEM DAX: direct access to persistent memory");
9798
MODULE_LICENSE("GPL v2");
9899
MODULE_AUTHOR("Intel Corporation");
99100
MODULE_ALIAS_ND_DEVICE(ND_DEVICE_DAX_PMEM);

drivers/dax/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ static void __exit dax_core_exit(void)
606606
}
607607

608608
MODULE_AUTHOR("Intel Corporation");
609+
MODULE_DESCRIPTION("DAX: direct access to differentiated memory");
609610
MODULE_LICENSE("GPL v2");
610611
subsys_initcall(dax_core_init);
611612
module_exit(dax_core_exit);

drivers/nvdimm/btt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ static struct arena_info *alloc_arena(struct btt *btt, size_t size,
751751
u64 logsize, mapsize, datasize;
752752
u64 available = size;
753753

754-
arena = kzalloc(sizeof(struct arena_info), GFP_KERNEL);
754+
arena = kzalloc(sizeof(*arena), GFP_KERNEL);
755755
if (!arena)
756756
return NULL;
757757
arena->nd_btt = btt->nd_btt;
@@ -978,7 +978,7 @@ static int btt_arena_write_layout(struct arena_info *arena)
978978
if (ret)
979979
return ret;
980980

981-
super = kzalloc(sizeof(struct btt_sb), GFP_NOIO);
981+
super = kzalloc(sizeof(*super), GFP_NOIO);
982982
if (!super)
983983
return -ENOMEM;
984984

@@ -1716,6 +1716,7 @@ static void __exit nd_btt_exit(void)
17161716

17171717
MODULE_ALIAS_ND_DEVICE(ND_DEVICE_BTT);
17181718
MODULE_AUTHOR("Vishal Verma <vishal.l.verma@linux.intel.com>");
1719+
MODULE_DESCRIPTION("NVDIMM Block Translation Table");
17191720
MODULE_LICENSE("GPL v2");
17201721
module_init(nd_btt_init);
17211722
module_exit(nd_btt_exit);

drivers/nvdimm/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static __exit void libnvdimm_exit(void)
540540
nvdimm_devs_exit();
541541
}
542542

543+
MODULE_DESCRIPTION("NVDIMM (Non-Volatile Memory Device) core");
543544
MODULE_LICENSE("GPL v2");
544545
MODULE_AUTHOR("Intel Corporation");
545546
subsys_initcall(libnvdimm_init);

drivers/nvdimm/e820.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ static struct platform_driver e820_pmem_driver = {
6969
module_platform_driver(e820_pmem_driver);
7070

7171
MODULE_ALIAS("platform:e820_pmem*");
72+
MODULE_DESCRIPTION("NVDIMM support for e820 type-12 memory");
7273
MODULE_LICENSE("GPL v2");
7374
MODULE_AUTHOR("Intel Corporation");

0 commit comments

Comments
 (0)