[net-next:master 246/246] include/net/switchdev.h:347:15: warning: return makes integer from pointer without a cast

From: kbuild test robot <hidden>
Date: 2016-09-02 00:47:35

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':
quoted
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 [off-list ref]
:::::: CC: David S. Miller [off-list ref]

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help