Skip to contentSkip to conversation

mtd: rawnand: ingenic: Fix unmet dependency if COMPILE_TEST

PATCH In review Paul Cercueil 2 participants 2 messages Feb 29, 2020 – Mar 2, 2020

Subsystems (5)
lore
Share & tools
lore

Paul Cercueil

author maintainer
#0 lore raw

PATCH 1/1 mtd: rawnand: ingenic: Fix unmet dependency if COMPILE_TEST

Commit 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") dropped the dependency on JZ4780_NEMC when COMPILE_TEST was set, which is wrong, as the driver requires symbols provided by the jz4780-nemc driver.

Change the dependency to (MIPS || COMPILE_TEST) && JZ4780_NEMC to address the issue.

Fixes 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver")
---
 drivers/mtd/nand/raw/ingenic/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/ingenic/Kconfig +2 -1
index 485abfa3f80b..96c5ae8b1bbc 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config MTD_NAND_JZ4780
 	tristate "JZ4780 NAND controller"
-	depends on JZ4780_NEMC || COMPILE_TEST
+	depends on MIPS || COMPILE_TEST
+	depends on JZ4780_NEMC
 	help
 	  Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
 	  based boards, using the BCH controller for hardware error correction.
Signature · 1 line
2.25.1
maintainer
#1 lore raw

Hi Paul,

Paul Cercueil <[email protected]> wrote on Sat, 29 Feb 2020 13:04:43 -0300:

Quoted 7 lines

Commit 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") dropped the dependency on JZ4780_NEMC when COMPILE_TEST was set, which is wrong, as the driver requires symbols provided by the jz4780-nemc driver.

Change the dependency to (MIPS || COMPILE_TEST) && JZ4780_NEMC to address the issue.

That was simple actually, thanks for finding the solution. Actually I don't think I mergeg my own patch as it was creating this build issue (unless I messed with something :) ) so can you please send a patch just adding COMPILE_TEST support without any Fixes mention?

Quoted 13 lines
Fixes 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver")
---
 drivers/mtd/nand/raw/ingenic/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/ingenic/Kconfig +0 -0
index 485abfa3f80b..96c5ae8b1bbc 100644

drivers/mtd/nand/raw/ingenic/Kconfig line 8

Quoted 9 lines
drivers/mtd/nand/raw/ingenic/Kconfig +2 -1
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config MTD_NAND_JZ4780
 	tristate "JZ4780 NAND controller"
-	depends on JZ4780_NEMC || COMPILE_TEST
+	depends on MIPS || COMPILE_TEST
+	depends on JZ4780_NEMC
 	help
 	  Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
 	  based boards, using the BCH controller for hardware error correction.

Thanks,
Miquèl