diff mbox

[REPOST] mfd: syscon: atmel-smc: include string.h

Message ID 20180504103446.20104-1-bigeasy@linutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Sebastian Andrzej Siewior May 4, 2018, 10:34 a.m. UTC
The string.h header file is needed for the memset() definition. The RT
build fails because it is not pulled in via other header files.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 drivers/mfd/atmel-smc.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Alexandre Belloni May 4, 2018, 12:16 p.m. UTC | #1
On 04/05/2018 12:34:46+0200, Sebastian Andrzej Siewior wrote:
> The string.h header file is needed for the memset() definition. The RT
> build fails because it is not pulled in via other header files.
> 
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> ---
>  drivers/mfd/atmel-smc.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/drivers/mfd/atmel-smc.c
> +++ b/drivers/mfd/atmel-smc.c
> @@ -12,6 +12,7 @@
>   */
>  
>  #include <linux/mfd/syscon/atmel-smc.h>
> +#include <linux/string.h>
>  
>  /**
>   * atmel_smc_cs_conf_init - initialize a SMC CS conf
Lee Jones May 18, 2018, 1:27 p.m. UTC | #2
On Fri, 04 May 2018, Sebastian Andrzej Siewior wrote:

> The string.h header file is needed for the memset() definition. The RT
> build fails because it is not pulled in via other header files.
> 
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
>  drivers/mfd/atmel-smc.c |    1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.
diff mbox

Patch

--- a/drivers/mfd/atmel-smc.c
+++ b/drivers/mfd/atmel-smc.c
@@ -12,6 +12,7 @@ 
  */
 
 #include <linux/mfd/syscon/atmel-smc.h>
+#include <linux/string.h>
 
 /**
  * atmel_smc_cs_conf_init - initialize a SMC CS conf