diff options
author | Besar Wicaksono <bwicaksono@nvidia.com> | 2022-11-16 14:39:52 -0600 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-11-18 13:32:11 +0000 |
commit | a91bbd5c9984a2b15e68aad7a79c2809fbd10fbe (patch) | |
tree | 368f069bbc4f677be4d13cb96f6bde77fbe921c7 /drivers/perf/arm_cspmu | |
parent | e72dbf9085b56bbc19ff332f82adec1891077637 (diff) | |
download | linux-a91bbd5c9984a2b15e68aad7a79c2809fbd10fbe.tar.gz linux-a91bbd5c9984a2b15e68aad7a79c2809fbd10fbe.tar.bz2 linux-a91bbd5c9984a2b15e68aad7a79c2809fbd10fbe.zip |
perf: arm_cspmu: Fix module cyclic dependency
Build on arm64 allmodconfig failed with:
| depmod: ERROR: Cycle detected: arm_cspmu -> nvidia_cspmu -> arm_cspmu
| depmod: ERROR: Found 2 modules in dependency cycles!
The arm_cspmu.c provides standard functions to operate the PMU and the
vendor code provides vendor specific attributes. Both need to be built as
single kernel module.
Update the makefile to compile sources under arm_cspmu into one module.
Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Reviewed-and-Tested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20221116203952.34168-1-bwicaksono@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/arm_cspmu')
-rw-r--r-- | drivers/perf/arm_cspmu/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/perf/arm_cspmu/Makefile b/drivers/perf/arm_cspmu/Makefile index 641db85c018b..fedb17df982d 100644 --- a/drivers/perf/arm_cspmu/Makefile +++ b/drivers/perf/arm_cspmu/Makefile @@ -2,6 +2,5 @@ # # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += \ - arm_cspmu.o \ - nvidia_cspmu.o +obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu_module.o +arm_cspmu_module-y := arm_cspmu.o nvidia_cspmu.o |