Hi Yigal,

[auto build test WARNING on v4.5-rc7]
[cannot apply to nf-next/master net-next/master next-20160318]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:    
https://github.com/0day-ci/linux/commits/Yigal-Reiss-yreiss/change-nfqueue-fail-open-mechanism-to-apply-also-to-receive-message/20160320-160132
config: xtensa-allyesconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   net/netlink/af_netlink.c: In function 'netlink_unicast_nofree':
>> net/netlink/af_netlink.c:1876:2: warning: suggest parentheses around 
>> assignment used as truth value [-Wparentheses]
     if (err = sk_filter(sk, skb)) {
     ^

vim +1876 net/netlink/af_netlink.c

  1860  {
  1861          struct sock *sk;
  1862          int err;
  1863          long timeo;
  1864  
  1865          skb = netlink_trim(skb, gfp_any());
  1866  
  1867          timeo = sock_sndtimeo(ssk, nonblock);
  1868  retry:
  1869          sk = netlink_getsockbyportid(ssk, portid);
  1870          if (IS_ERR(sk)) {
  1871                  return PTR_ERR(sk);
  1872          }
  1873          if (netlink_is_kernel(sk))
  1874                  return netlink_unicast_kernel(sk, skb, ssk);
  1875  
> 1876          if (err = sk_filter(sk, skb)) {
  1877                  sock_put(sk);
  1878                  return err;
  1879          }
  1880  
  1881          err = netlink_attachskb_nofree(sk, skb, &timeo, ssk);
  1882          if (err == 1)
  1883                  goto retry;
  1884          if (err)

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

Attachment: .config.gz
Description: Binary data

Reply via email to