[PATCH] Staging: ks7010: Fix Unnecessary parentheses in ks_hostif.c

kbuild test robot lkp at intel.com
Sun Feb 18 15:51:57 UTC 2018


Hi Yash,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.16-rc1 next-20180216]
[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/Yash-Omer/Staging-ks7010-Fix-Unnecessary-parentheses-in-ks_hostif-c/20180218-223344
config: i386-randconfig-a0-201807 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/staging/ks7010/ks_hostif.c: In function 'hostif_scan_indication':
   drivers/staging/ks7010/ks_hostif.c:853:26: error: expected ')' before 'priv'
           &(priv->aplist.ap priv->scan_ind_count - 1));
                             ^
>> drivers/staging/ks7010/ks_hostif.c:853:8: warning: passing argument 3 of 'get_ap_information' from incompatible pointer type
           &(priv->aplist.ap priv->scan_ind_count - 1));
           ^
   drivers/staging/ks7010/ks_hostif.c:218:5: note: expected 'struct local_ap_t *' but argument is of type 'struct local_ap_t (*)[32]'
    int get_ap_information(struct ks_wlan_private *priv, struct ap_info_t *ap_info,
        ^

vim +/get_ap_information +853 drivers/staging/ks7010/ks_hostif.c

   826	
   827	static
   828	void hostif_scan_indication(struct ks_wlan_private *priv)
   829	{
   830		int i;
   831		struct ap_info_t *ap_info;
   832	
   833		DPRINTK(3, "scan_ind_count = %d\n", priv->scan_ind_count);
   834		ap_info = (struct ap_info_t *)(priv->rxp);
   835	
   836		if (priv->scan_ind_count) {
   837			for (i = 0; i < priv->aplist.size; i++) {	/* bssid check */
   838				if (memcmp(ap_info->bssid,
   839					   priv->aplist.ap[i].bssid, ETH_ALEN) != 0)
   840					continue;
   841	
   842				if (ap_info->frame_type == FRAME_TYPE_PROBE_RESP)
   843					get_ap_information(priv, ap_info,
   844							   &priv->aplist.ap[i]);
   845				return;
   846			}
   847		}
   848		priv->scan_ind_count++;
   849		if (priv->scan_ind_count < LOCAL_APLIST_MAX + 1) {
   850			DPRINTK(4, " scan_ind_count=%d :: aplist.size=%d\n",
   851				priv->scan_ind_count, priv->aplist.size);
   852			get_ap_information(priv, (struct ap_info_t *)(priv->rxp),
 > 853					   &(priv->aplist.ap priv->scan_ind_count - 1));
   854			priv->aplist.size = priv->scan_ind_count;
   855		} else {
   856			DPRINTK(4, " count over :: scan_ind_count=%d\n",
   857				priv->scan_ind_count);
   858		}
   859	}
   860	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 31583 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20180218/d0e9b66e/attachment-0003.bin>


More information about the devel mailing list