diff options
author | Will Deacon <will@kernel.org> | 2022-11-15 21:24:03 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-11-15 21:24:03 +0300 |
commit | 1830902eb896824ca313a50f3486645c2df21327 (patch) | |
tree | d45dfda41ec41ae3bec5a8506cffc20d5a8727e5 | |
parent | 84481be7167eba1957c8718c8b044a47965fdecb (diff) | |
download | linux-1830902eb896824ca313a50f3486645c2df21327.tar.xz |
perf: arm_cspmu: Fix modular builds due to missing MODULE_LICENSE()s
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>
-rw-r--r-- | drivers/perf/arm_cspmu/arm_cspmu.c | 2 | ||||
-rw-r--r-- | drivers/perf/arm_cspmu/nvidia_cspmu.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index e851eeb33f4a..e31302ab7e37 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -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"); diff --git a/drivers/perf/arm_cspmu/nvidia_cspmu.c b/drivers/perf/arm_cspmu/nvidia_cspmu.c index c795414ec7c7..72ef80caa3c8 100644 --- a/drivers/perf/arm_cspmu/nvidia_cspmu.c +++ b/drivers/perf/arm_cspmu/nvidia_cspmu.c @@ -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"); |