Skip to contentSkip to conversation

staging: wilc1000: fix build error for openrisc-allmodconfig

PATCH In review Chaehyun Lim 2 participants 3 messages Sep 30, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: fix build error for openrisc-allmodconfig

The kbuild test robot reports the following build error for openrisc-allmodconfig.

Quoted 2 lines
Quoted 2 lines

drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit declaration of function 'memset'

The error occurs due to missing a standard header file as <linux/string.h> so that three .c files are included it.

---
 drivers/staging/wilc1000/wilc_sdio.c     | 1 +
 drivers/staging/wilc1000/wilc_spi.c      | 1 +
 drivers/staging/wilc1000/wilc_wlan_cfg.c | 1 +
 3 files changed, 3 insertions(+)
drivers/staging/wilc1000/wilc_sdio.c +1 -0
index 6da65e8..6e28ca0 100644
@@ -7,6 +7,7 @@
 /*  */
 /* //////////////////////////////////////////////////////////////////////////// */
 
+#include <linux/string.h>
 #include "wilc_wlan_if.h"
 #include "wilc_wlan.h"
 
drivers/staging/wilc1000/wilc_spi.c +1 -0
index f762770..0e06fc2 100644
@@ -7,6 +7,7 @@
 /*  */
 /* //////////////////////////////////////////////////////////////////////////// */
 
+#include <linux/string.h>
 #include "wilc_wlan_if.h"
 #include "wilc_wlan.h"
 
drivers/staging/wilc1000/wilc_wlan_cfg.c +1 -0
index 73a1508..d761a37 100644
@@ -7,6 +7,7 @@
 /*  */
 /* ///////////////////////////////////////////////////////////////////////// */
 
+#include <linux/string.h>
 #include "wilc_wlan_if.h"
 #include "wilc_wlan.h"
 #include "wilc_wlan_cfg.h"
Signature · 1 line
2.6.0
maintainer
#1 lore raw
Quoted 10 lines · Chaehyun Lim

The kbuild test robot reports the following build error for openrisc-allmodconfig.

Quoted 2 lines
Quoted 2 lines

drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit declaration of function 'memset'

The error occurs due to missing a standard header file as <linux/string.h> so that three .c files are included it.

You forgot to add a Reported-by: line giving credit to kbuild, I've done that by hand.

thanks,

greg k-h

#2 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · Chaehyun Lim

The kbuild test robot reports the following build error for openrisc-allmodconfig.

Quoted 2 lines
Quoted 2 lines

drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit declaration of function 'memset'

The error occurs due to missing a standard header file as <linux/string.h> so that three .c files are included it.

Quoted 8 lines
Quoted 1 line

You forgot to add a Reported-by: line giving credit to kbuild, I've done that by hand.

thanks,

greg k-h

I understood. I will keep it in my mind to send patch.

Regards
Chaehyun Lim