perf: arm_cspmu: Fix modular builds due to missing MODULE_LICENSE()s
authorWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 18:24:03 +0000 (18:24 +0000)
committerWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 18:24:03 +0000 (18:24 +0000)
Building an arm64 allmodconfig target results in the following failure
from modpost:

  | ERROR: modpost: missing MODULE_LICENSE() in drivers/perf/arm_cspmu/arm_cspmu.o
  | ERROR: modpost: missing MODULE_LICENSE() in drivers/perf/arm_cspmu/nvidia_cspmu.o
  | make[1]: *** [scripts/Makefile.modpost:126: Module.symvers] Error 1
  | make: *** [Makefile:1944: modpost] Error 2

Add the missing MODULE_LICENSE() macros, following the license of the
source files and symbol exports.

Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_cspmu/arm_cspmu.c
drivers/perf/arm_cspmu/nvidia_cspmu.c

index e851eeb..e31302a 100644 (file)
@@ -1299,3 +1299,5 @@ static void __exit arm_cspmu_exit(void)
 
 module_init(arm_cspmu_init);
 module_exit(arm_cspmu_exit);
+
+MODULE_LICENSE("GPL v2");
index c795414..72ef80c 100644 (file)
@@ -396,3 +396,5 @@ int nv_cspmu_init_ops(struct arm_cspmu *cspmu)
        return 0;
 }
 EXPORT_SYMBOL_GPL(nv_cspmu_init_ops);
+
+MODULE_LICENSE("GPL v2");