perf: add missing MODULE_DESCRIPTION() macros
authorJeff Johnson <quic_jjohnson@quicinc.com>
Tue, 9 Jul 2024 22:07:55 +0000 (15:07 -0700)
committerWill Deacon <will@kernel.org>
Wed, 10 Jul 2024 12:04:38 +0000 (13:04 +0100)
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 <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20240709-md-drivers-perf-v3-1-513275b75ed0@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ccn.c
drivers/perf/arm_cspmu/ampere_cspmu.c
drivers/perf/arm_cspmu/arm_cspmu.c
drivers/perf/arm_cspmu/nvidia_cspmu.c
drivers/perf/cxl_pmu.c
drivers/perf/fsl_imx8_ddr_perf.c
drivers/perf/hisilicon/hisi_uncore_pmu.c
drivers/perf/marvell_cn10k_ddr_pmu.c

index 86ef31ac75037d2013c66c00d45f4884984989bd..5c66b927886237775d6c7fd513d5e0b8b872f4ed 100644 (file)
@@ -1561,4 +1561,5 @@ module_init(arm_ccn_init);
 module_exit(arm_ccn_exit);
 
 MODULE_AUTHOR("Pawel Moll <pawel.moll@arm.com>");
+MODULE_DESCRIPTION("ARM CCN (Cache Coherent Network) Performance Monitor Driver");
 MODULE_LICENSE("GPL v2");
index f146a455e8382e9dc91e7d8052669b7fcd54092a..f72f5689923c73da2fc0bfe99b1a4a3371d5ee86 100644 (file)
@@ -269,4 +269,5 @@ static void __exit ampere_cspmu_exit(void)
 module_init(ampere_cspmu_init);
 module_exit(ampere_cspmu_exit);
 
+MODULE_DESCRIPTION("Ampere SoC Performance Monitor Driver");
 MODULE_LICENSE("GPL");
index c318dc9097672090ddf641b205d33029611d1311..2158a5975c90759f95c6a09476e90cb3b78356df 100644 (file)
@@ -1427,4 +1427,5 @@ EXPORT_SYMBOL_GPL(arm_cspmu_impl_unregister);
 module_init(arm_cspmu_init);
 module_exit(arm_cspmu_exit);
 
+MODULE_DESCRIPTION("ARM CoreSight Architecture Performance Monitor Driver");
 MODULE_LICENSE("GPL v2");
index 5b84b701ad622834511a3474324a5ab116142bee..d0ef611240aa3658b5ecb97438b5330603fb5ae3 100644 (file)
@@ -417,4 +417,5 @@ static void __exit nvidia_cspmu_exit(void)
 module_init(nvidia_cspmu_init);
 module_exit(nvidia_cspmu_exit);
 
+MODULE_DESCRIPTION("NVIDIA Coresight Architecture Performance Monitor Driver");
 MODULE_LICENSE("GPL v2");
index 1f93a66eff5b2913953171d801ecd98a9959d60c..43d68b69e6300f75222ebbbe55a68ea8745e6317 100644 (file)
@@ -972,6 +972,7 @@ static __exit void cxl_pmu_exit(void)
        cpuhp_remove_multi_state(cxl_pmu_cpuhp_state_num);
 }
 
+MODULE_DESCRIPTION("CXL Performance Monitor Driver");
 MODULE_LICENSE("GPL");
 MODULE_IMPORT_NS(CXL);
 module_init(cxl_pmu_init);
index 1bbdb29743c442c2a2a840b3154aa80f22b26da4..746b92330ca7f024b9e72a42a6a3ea9e3e947cdf 100644 (file)
@@ -850,4 +850,5 @@ static struct platform_driver imx_ddr_pmu_driver = {
 };
 
 module_platform_driver(imx_ddr_pmu_driver);
+MODULE_DESCRIPTION("Freescale i.MX8 DDR Performance Monitor Driver");
 MODULE_LICENSE("GPL v2");
index 6392cbedcd0674cb6d97cb179f9ab697c50518cc..918cdc31de57222363d2e2665ba23e746086cd66 100644 (file)
@@ -537,4 +537,5 @@ void hisi_pmu_init(struct hisi_pmu *hisi_pmu, struct module *module)
 }
 EXPORT_SYMBOL_GPL(hisi_pmu_init);
 
+MODULE_DESCRIPTION("HiSilicon SoC uncore Performance Monitor driver framework");
 MODULE_LICENSE("GPL v2");
index e2abca188dbeccb3ee216871a4a9cb947a8088ba..94f1ebcd2a275d523010d1e7a1d823e3edc0834e 100644 (file)
@@ -763,4 +763,5 @@ module_init(cn10k_ddr_pmu_init);
 module_exit(cn10k_ddr_pmu_exit);
 
 MODULE_AUTHOR("Bharat Bhushan <bbhushan2@marvell.com>");
+MODULE_DESCRIPTION("Marvell CN10K DRAM Subsystem (DSS) Performance Monitor Driver");
 MODULE_LICENSE("GPL v2");