lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201609020832.DZYXSzeR%fengguang.wu@intel.com>
Date:   Fri, 2 Sep 2016 08:46:38 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Roopa Prabhu <roopa@...ulusnetworks.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Wilson Kok <wkok@...ulusnetworks.com>
Subject: [net-next:master 246/246] include/net/switchdev.h:347:15: warning:
 return makes integer from pointer without a cast

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   d297653dd6f07afbe7e6c702a4bcd7615680002e
commit: d297653dd6f07afbe7e6c702a4bcd7615680002e [246/246] rtnetlink: fdb dump: optimize by saving last interface markers
config: powerpc-cm5200_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 d297653dd6f07afbe7e6c702a4bcd7615680002e
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All warnings (new ones prefixed by >>):

   In file included from net/core/rtnetlink.c:47:0:
   include/net/switchdev.h: In function 'switchdev_port_fdb_dump':
>> include/net/switchdev.h:347:15: warning: return makes integer from pointer without a cast [-Wint-conversion]
           return idx;
                  ^

vim +347 include/net/switchdev.h

45d4122c Samudrala, Sridhar 2015-05-13  331  	return -EOPNOTSUPP;
45d4122c Samudrala, Sridhar 2015-05-13  332  }
45d4122c Samudrala, Sridhar 2015-05-13  333  
45d4122c Samudrala, Sridhar 2015-05-13  334  static inline int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
45d4122c Samudrala, Sridhar 2015-05-13  335  					 struct net_device *dev,
45d4122c Samudrala, Sridhar 2015-05-13  336  					 const unsigned char *addr, u16 vid)
45d4122c Samudrala, Sridhar 2015-05-13  337  {
45d4122c Samudrala, Sridhar 2015-05-13  338  	return -EOPNOTSUPP;
45d4122c Samudrala, Sridhar 2015-05-13  339  }
45d4122c Samudrala, Sridhar 2015-05-13  340  
45d4122c Samudrala, Sridhar 2015-05-13  341  static inline int switchdev_port_fdb_dump(struct sk_buff *skb,
45d4122c Samudrala, Sridhar 2015-05-13  342  					  struct netlink_callback *cb,
45d4122c Samudrala, Sridhar 2015-05-13  343  					  struct net_device *dev,
45d4122c Samudrala, Sridhar 2015-05-13  344  					  struct net_device *filter_dev,
d297653d Roopa Prabhu       2016-08-30  345  					  int *idx)
45d4122c Samudrala, Sridhar 2015-05-13  346  {
24cb7055 Dragos Tatulea     2015-11-16 @347         return idx;
45d4122c Samudrala, Sridhar 2015-05-13  348  }
45d4122c Samudrala, Sridhar 2015-05-13  349  
8438884d Or Gerlitz         2016-07-14  350  static inline bool switchdev_port_same_parent_id(struct net_device *a,
8438884d Or Gerlitz         2016-07-14  351  						 struct net_device *b)
8438884d Or Gerlitz         2016-07-14  352  {
8438884d Or Gerlitz         2016-07-14  353  	return false;
8438884d Or Gerlitz         2016-07-14  354  }
8438884d Or Gerlitz         2016-07-14  355  

:::::: The code at line 347 was first introduced by commit
:::::: 24cb7055a3066634a0f3fa0cd6a4780652905d35 net: switchdev: fix return code of fdb_dump stub

:::::: TO: Dragos Tatulea <dragos@...ocode.com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

Download attachment ".config.gz" of type "application/octet-stream" (12479 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ