Skip to content

Commit 42bebc7

Browse files
Jeff Johnsonwilldeacon
authored andcommitted
perf: add missing MODULE_DESCRIPTION() macros
With ARCH=x86, make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/arm-ccn.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/fsl_imx8_ddr_perf.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/marvell_cn10k_ddr_pmu.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/arm_cspmu/arm_cspmu_module.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/arm_cspmu/nvidia_cspmu.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/arm_cspmu/ampere_cspmu.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/perf/cxl_pmu.o Add the missing invocation of the MODULE_DESCRIPTION() macro to all files which have a MODULE_LICENSE(). This includes drivers/perf/hisilicon/hisi_uncore_pmu.c which, although it did not produce a warning with the x86 allmodconfig configuration, may cause this warning with arm64 configurations. Signed-off-by: Jeff Johnson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d688ffa commit 42bebc7

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

drivers/perf/arm-ccn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,4 +1561,5 @@ module_init(arm_ccn_init);
15611561
module_exit(arm_ccn_exit);
15621562

15631563
MODULE_AUTHOR("Pawel Moll <[email protected]>");
1564+
MODULE_DESCRIPTION("ARM CCN (Cache Coherent Network) Performance Monitor Driver");
15641565
MODULE_LICENSE("GPL v2");

drivers/perf/arm_cspmu/ampere_cspmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,5 @@ static void __exit ampere_cspmu_exit(void)
269269
module_init(ampere_cspmu_init);
270270
module_exit(ampere_cspmu_exit);
271271

272+
MODULE_DESCRIPTION("Ampere SoC Performance Monitor Driver");
272273
MODULE_LICENSE("GPL");

drivers/perf/arm_cspmu/arm_cspmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,4 +1427,5 @@ EXPORT_SYMBOL_GPL(arm_cspmu_impl_unregister);
14271427
module_init(arm_cspmu_init);
14281428
module_exit(arm_cspmu_exit);
14291429

1430+
MODULE_DESCRIPTION("ARM CoreSight Architecture Performance Monitor Driver");
14301431
MODULE_LICENSE("GPL v2");

drivers/perf/arm_cspmu/nvidia_cspmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,4 +417,5 @@ static void __exit nvidia_cspmu_exit(void)
417417
module_init(nvidia_cspmu_init);
418418
module_exit(nvidia_cspmu_exit);
419419

420+
MODULE_DESCRIPTION("NVIDIA Coresight Architecture Performance Monitor Driver");
420421
MODULE_LICENSE("GPL v2");

drivers/perf/cxl_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ static __exit void cxl_pmu_exit(void)
972972
cpuhp_remove_multi_state(cxl_pmu_cpuhp_state_num);
973973
}
974974

975+
MODULE_DESCRIPTION("CXL Performance Monitor Driver");
975976
MODULE_LICENSE("GPL");
976977
MODULE_IMPORT_NS(CXL);
977978
module_init(cxl_pmu_init);

drivers/perf/fsl_imx8_ddr_perf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,4 +850,5 @@ static struct platform_driver imx_ddr_pmu_driver = {
850850
};
851851

852852
module_platform_driver(imx_ddr_pmu_driver);
853+
MODULE_DESCRIPTION("Freescale i.MX8 DDR Performance Monitor Driver");
853854
MODULE_LICENSE("GPL v2");

drivers/perf/hisilicon/hisi_uncore_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,4 +537,5 @@ void hisi_pmu_init(struct hisi_pmu *hisi_pmu, struct module *module)
537537
}
538538
EXPORT_SYMBOL_GPL(hisi_pmu_init);
539539

540+
MODULE_DESCRIPTION("HiSilicon SoC uncore Performance Monitor driver framework");
540541
MODULE_LICENSE("GPL v2");

drivers/perf/marvell_cn10k_ddr_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,4 +763,5 @@ module_init(cn10k_ddr_pmu_init);
763763
module_exit(cn10k_ddr_pmu_exit);
764764

765765
MODULE_AUTHOR("Bharat Bhushan <[email protected]>");
766+
MODULE_DESCRIPTION("Marvell CN10K DRAM Subsystem (DSS) Performance Monitor Driver");
766767
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)