Skip to contentSkip to conversation

mtd: spi-nor: stm32-quadspi: allow building with COMPILE_TEST

PATCH In review Brian Norris 2 participants 3 messages May 2, 2017 – May 4, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor: stm32-quadspi: allow building with COMPILE_TEST

---
 drivers/mtd/spi-nor/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi-nor/Kconfig +1 -1
index bfdfb1e72b38..293c8a4d1e49 100644
@@ -108,7 +108,7 @@ config SPI_INTEL_SPI_PLATFORM
 
 config SPI_STM32_QUADSPI
 	tristate "STM32 Quad SPI controller"
-	depends on ARCH_STM32
+	depends on ARCH_STM32 || COMPILE_TEST
 	help
 	  This enables support for the STM32 Quad SPI controller.
 	  We only connect the NOR to this controller.
Signature · 1 line
2.13.0.rc1.294.g07d810a77f-goog
Acked-by on v1 1/1
#1 lore raw

Hi Brian,

Quoted 2 lines · Brian Norris

Do you want me to take it into the github/spi-nor tree or do you want to take it directly in the l2-mtd.git tree for 4.12 ?

Best regards,

Cyrille

Quoted 18 lines
---
 drivers/mtd/spi-nor/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi-nor/Kconfig +1 -1
index bfdfb1e72b38..293c8a4d1e49 100644
@@ -108,7 +108,7 @@ config SPI_INTEL_SPI_PLATFORM
 
 config SPI_STM32_QUADSPI
 	tristate "STM32 Quad SPI controller"
-	depends on ARCH_STM32
+	depends on ARCH_STM32 || COMPILE_TEST
 	help
 	  This enables support for the STM32 Quad SPI controller.
 	  We only connect the NOR to this controller.
#2 lore raw
Quoted 10 lines · Cyrille Pitchen

Hi Brian,

Quoted 2 lines · Brian Norris

Do you want me to take it into the github/spi-nor tree or do you want to take it directly in the l2-mtd.git tree for 4.12 ?

Did you already? Stephen Rothwell is already reporting build failures.

It's certainly no rush for 4.12. Take it in your tree if you haven't already, and add #include <linux/sizes.h> while you're at it (the cause of the build failure).

Brian