Skip to content

Commit 192d43e

Browse files
hcodinagregkh
authored andcommitted
soc: fsl: cpm1: Fix TSA and QMC dependencies in case of COMPILE_TEST
In order to compile tsa.c and qmc.c, CONFIG_CPM must be set. Without this dependency, the linker fails with some missing symbols for COMPILE_TEST configurations that need QMC without enabling CPM. Signed-off-by: Herve Codina <herve.codina@bootlin.com> Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/oe-kbuild-all/202305160221.9XgweObz-lkp@intel.com/ Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Link: https://lore.kernel.org/r/20230523085902.75837-2-herve.codina@bootlin.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2474e05 commit 192d43e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soc/fsl/qe/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config UCC
3636
config CPM_TSA
3737
tristate "CPM TSA support"
3838
depends on OF && HAS_IOMEM
39-
depends on CPM1 || COMPILE_TEST
39+
depends on CPM1 || (CPM && COMPILE_TEST)
4040
help
4141
Freescale CPM Time Slot Assigner (TSA)
4242
controller.
@@ -47,7 +47,7 @@ config CPM_TSA
4747
config CPM_QMC
4848
tristate "CPM QMC support"
4949
depends on OF && HAS_IOMEM
50-
depends on CPM1 || (FSL_SOC && COMPILE_TEST)
50+
depends on CPM1 || (FSL_SOC && CPM && COMPILE_TEST)
5151
depends on CPM_TSA
5252
help
5353
Freescale CPM QUICC Multichannel Controller

0 commit comments

Comments
 (0)