diff mbox

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

Message ID 20170502011300.137397-1-computersforpeace@gmail.com
State Accepted
Commit ddd0503e4d780607865950e14f215bf8660ed683
Delegated to: Cyrille Pitchen
Headers show

Commit Message

Brian Norris May 2, 2017, 1:13 a.m. UTC
Cc: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 drivers/mtd/spi-nor/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Cyrille Pitchen May 3, 2017, 8:53 p.m. UTC | #1
Hi Brian,

Le 02/05/2017 à 03:13, Brian Norris a écrit :
> Cc: Ludovic Barre <ludovic.barre@st.com>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>

Acked-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>

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

> ---
>  drivers/mtd/spi-nor/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
> index bfdfb1e72b38..293c8a4d1e49 100644
> --- a/drivers/mtd/spi-nor/Kconfig
> +++ b/drivers/mtd/spi-nor/Kconfig
> @@ -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.
>
Brian Norris May 4, 2017, 1:12 a.m. UTC | #2
On Wed, May 03, 2017 at 10:53:12PM +0200, Cyrille Pitchen wrote:
> Hi Brian,
> 
> Le 02/05/2017 à 03:13, Brian Norris a écrit :
> > Cc: Ludovic Barre <ludovic.barre@st.com>
> > Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> 
> Acked-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
> 
> 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
diff mbox

Patch

diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
index bfdfb1e72b38..293c8a4d1e49 100644
--- a/drivers/mtd/spi-nor/Kconfig
+++ b/drivers/mtd/spi-nor/Kconfig
@@ -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.