[staging:staging-testing 959/962] drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit declaration of function 'memset'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   7477929566b65f692b79974b784ee59e8b2b9f18
commit: e215a871255f9256de77e1b9c32b84d3a80122c1 [959/962] staging: wilc1000: remove wilc_platform include file
config: openrisc-allmodconfig (attached as .config)
reproduce:
  wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout e215a871255f9256de77e1b9c32b84d3a80122c1
  # save the attached .config to linux build tree
  make.cross ARCH=openrisc 

All error/warnings (new ones prefixed by >>):

   drivers/staging/wilc1000/wilc_sdio.c: In function 'sdio_init':
>> drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit declaration of function 'memset'
>> drivers/staging/wilc1000/wilc_sdio.c:584:2: warning: incompatible implicit declaration of built-in function 'memset'
--
   drivers/staging/wilc1000/wilc_spi.c: In function 'spi_init':
>> drivers/staging/wilc1000/wilc_spi.c:1092:2: error: implicit declaration of function 'memset'
>> drivers/staging/wilc1000/wilc_spi.c:1092:2: warning: incompatible implicit declaration of built-in function 'memset'
--
   drivers/staging/wilc1000/wilc_wlan_cfg.c: In function 'wilc_wlan_cfg_set_str':
>> drivers/staging/wilc1000/wilc_wlan_cfg.c:231:3: error: implicit declaration of function 'memcpy'
>> drivers/staging/wilc1000/wilc_wlan_cfg.c:231:3: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c: In function 'wilc_wlan_cfg_set_bin':
   drivers/staging/wilc1000/wilc_wlan_cfg.c:252:3: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c: In function 'wilc_wlan_parse_response_frame':
   drivers/staging/wilc1000/wilc_wlan_cfg.c:348:6: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c: In function 'wilc_wlan_cfg_get_wid_value':
   drivers/staging/wilc1000/wilc_wlan_cfg.c:445:5: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c:457:5: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c:469:5: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c:493:6: warning: incompatible implicit declaration of built-in function 'memcpy'
   drivers/staging/wilc1000/wilc_wlan_cfg.c: In function 'wilc_wlan_cfg_init':
>> drivers/staging/wilc1000/wilc_wlan_cfg.c:562:2: error: implicit declaration of function 'memset'
>> drivers/staging/wilc1000/wilc_wlan_cfg.c:562:2: warning: incompatible implicit declaration of built-in function 'memset'

vim +/memset +584 drivers/staging/wilc1000/wilc_sdio.c

c5c77ba1 Johnny Kim   2015-05-11  568  		if (!ret) {
c5c77ba1 Johnny Kim   2015-05-11  569  			g_sdio.dPrint(N_ERR, "[wilc spi]: Failed write reg (%08x)...\n", WILC_INTR_ENABLE);
c5c77ba1 Johnny Kim   2015-05-11  570  			return 0;
c5c77ba1 Johnny Kim   2015-05-11  571  		}
c5c77ba1 Johnny Kim   2015-05-11  572  	}
c5c77ba1 Johnny Kim   2015-05-11  573  #endif
c5c77ba1 Johnny Kim   2015-05-11  574  
c5c77ba1 Johnny Kim   2015-05-11  575  	return 1;
c5c77ba1 Johnny Kim   2015-05-11  576  }
c5c77ba1 Johnny Kim   2015-05-11  577  
c5c77ba1 Johnny Kim   2015-05-11  578  static int sdio_init(wilc_wlan_inp_t *inp, wilc_debug_func func)
c5c77ba1 Johnny Kim   2015-05-11  579  {
c5c77ba1 Johnny Kim   2015-05-11  580  	sdio_cmd52_t cmd;
c5c77ba1 Johnny Kim   2015-05-11  581  	int loop;
fbc2fe16 Chaehyun Lim 2015-09-15  582  	u32 chipid;
9c844693 Tony Cho     2015-07-28  583  
c5c77ba1 Johnny Kim   2015-05-11 @584  	memset(&g_sdio, 0, sizeof(wilc_sdio_t));
c5c77ba1 Johnny Kim   2015-05-11  585  
c5c77ba1 Johnny Kim   2015-05-11  586  	g_sdio.dPrint = func;
c5c77ba1 Johnny Kim   2015-05-11  587  	g_sdio.os_context = inp->os_context.os_private;
c5c77ba1 Johnny Kim   2015-05-11  588  
c5c77ba1 Johnny Kim   2015-05-11  589  	if (inp->io_func.io_init) {
c5c77ba1 Johnny Kim   2015-05-11  590  		if (!inp->io_func.io_init(g_sdio.os_context)) {
c5c77ba1 Johnny Kim   2015-05-11  591  			g_sdio.dPrint(N_ERR, "[wilc sdio]: Failed io init bus...\n");
c5c77ba1 Johnny Kim   2015-05-11  592  			return 0;

:::::: The code at line 584 was first introduced by commit
:::::: c5c77ba18ea66aa05441c71e38473efb787705a4 staging: wilc1000: Add SDIO/SPI 802.11 driver

:::::: TO: Johnny Kim <johnny.kim@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux