linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: Compile MFD_STW481X with COMPILE_TEST
@ 2015-10-12 16:26 Luis de Bethencourt
  2015-10-13  7:32 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Luis de Bethencourt @ 2015-10-12 16:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: sameo, lee.jones, Luis de Bethencourt

The driver depends on ARCH_NOMADIK but there isn't a build dependency
so it's a good idea to allow the driver to always be built when the
COMPILE_TEST option is enabled.

That way, the driver can be built with a config generated by make
allyesconfig and check if a patch would break the build.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 drivers/mfd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 99d6367..68d708f 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1471,7 +1471,7 @@ config MFD_WM8994
 
 config MFD_STW481X
 	tristate "Support for ST Microelectronics STw481x"
-	depends on I2C && ARCH_NOMADIK
+	depends on I2C && (ARCH_NOMADIK || COMPILE_TEST)
 	select REGMAP_I2C
 	select MFD_CORE
 	help
-- 
2.5.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: Compile MFD_STW481X with COMPILE_TEST
  2015-10-12 16:26 [PATCH] mfd: Compile MFD_STW481X with COMPILE_TEST Luis de Bethencourt
@ 2015-10-13  7:32 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2015-10-13  7:32 UTC (permalink / raw)
  To: Luis de Bethencourt; +Cc: linux-kernel, sameo

On Mon, 12 Oct 2015, Luis de Bethencourt wrote:

> The driver depends on ARCH_NOMADIK but there isn't a build dependency
> so it's a good idea to allow the driver to always be built when the
> COMPILE_TEST option is enabled.
> 
> That way, the driver can be built with a config generated by make
> allyesconfig and check if a patch would break the build.
> 
> Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
> ---
>  drivers/mfd/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 99d6367..68d708f 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -1471,7 +1471,7 @@ config MFD_WM8994
>  
>  config MFD_STW481X
>  	tristate "Support for ST Microelectronics STw481x"
> -	depends on I2C && ARCH_NOMADIK
> +	depends on I2C && (ARCH_NOMADIK || COMPILE_TEST)
>  	select REGMAP_I2C
>  	select MFD_CORE
>  	help

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-13  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 16:26 [PATCH] mfd: Compile MFD_STW481X with COMPILE_TEST Luis de Bethencourt
2015-10-13  7:32 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).