Re: [PATCH] staging: wilc1000: New cfg packet format in handle_set_wfi_drv_handler

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

 



Hi Aditya,

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.11-rc6 next-20170407]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Aditya-Shankar/staging-wilc1000-New-cfg-packet-format-in-handle_set_wfi_drv_handler/20170410-122917
config: i386-randconfig-x019-201715 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/staging/wilc1000/host_interface.c: In function 'handle_set_wfi_drv_handler':
>> drivers/staging/wilc1000/host_interface.c:350:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     u8 *buffer = kzalloc(DRV_HANDLER_SIZE, GFP_ATOMIC);
     ^~

vim +350 drivers/staging/wilc1000/host_interface.c

   334					       struct drv_handler *hif_drv_handler)
   335	{
   336		int ret = 0;
   337		struct wid wid;
   338		u8 *currbyte;
   339		struct host_if_drv *hif_drv = NULL;
   340		int driver_handler_id = 0;
   341	
   342		if (!vif->hif_drv)
   343			return;
   344	
   345		if (!hif_drv_handler)
   346			return;
   347	
   348		hif_drv	= vif->hif_drv;
   349	
 > 350		u8 *buffer = kzalloc(DRV_HANDLER_SIZE, GFP_ATOMIC);
   351	
   352		if (hif_drv)
   353			driver_handler_id = hif_drv->driver_handler_id;
   354		else
   355			driver_handler_id = 0;
   356	
   357		currbyte = buffer;
   358		*currbyte = driver_handler_id & DRV_HANDLER_MASK;

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
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