Re: [PATCH] drivers/rxe: improve rxe loopback

From: kbuild test robot
Date: Thu Jul 27 2017 - 09:48:14 EST


Hi Marcel,

[auto build test ERROR on rdma/master]
[also build test ERROR on v4.13-rc2 next-20170727]
[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/Marcel-Apfelbaum/drivers-rxe-improve-rxe-loopback/20170727-211514
base: https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git master
config: i386-randconfig-x002-07271954 (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 error/warnings (new ones prefixed by >>):

drivers/infiniband/sw/rxe/rxe_net.c: In function 'addr6_same_rxe':
>> drivers/infiniband/sw/rxe/rxe_net.c:414:12: error: implicit declaration of function 'in6_dev_get' [-Werror=implicit-function-declaration]
in6_dev = in6_dev_get(rxe->ndev);
^~~~~~~~~~~
>> drivers/infiniband/sw/rxe/rxe_net.c:414:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
in6_dev = in6_dev_get(rxe->ndev);
^
>> drivers/infiniband/sw/rxe/rxe_net.c:426:2: error: implicit declaration of function 'in6_dev_put' [-Werror=implicit-function-declaration]
in6_dev_put(in6_dev);
^~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/in6_dev_get +414 drivers/infiniband/sw/rxe/rxe_net.c

407
408 static inline bool addr6_same_rxe(struct rxe_dev *rxe, struct in6_addr *daddr)
409 {
410 struct inet6_dev *in6_dev;
411 struct inet6_ifaddr *ifp;
412 bool same_rxe = false;
413
> 414 in6_dev = in6_dev_get(rxe->ndev);
415 if (!in6_dev)
416 return false;
417
418 read_lock_bh(&in6_dev->lock);
419 list_for_each_entry(ifp, &in6_dev->addr_list, if_list)
420 if (!memcmp(&ifp->addr, daddr, sizeof(*daddr))) {
421 same_rxe = true;
422 goto out;
423 }
424 out:
425 read_unlock_bh(&in6_dev->lock);
> 426 in6_dev_put(in6_dev);
427 return same_rxe;
428 }
429

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

Attachment: .config.gz
Description: application/gzip