From: kernel test robot <lkp@intel.com>
To: Guoqing Jiang <guoqing.jiang@linux.dev>,
yanjun.zhu@linux.dev, jgg@ziepe.ca, leon@kernel.org
Cc: kbuild-all@lists.01.org, linux-rdma@vger.kernel.org,
Guoqing Jiang <guoqing.jiang@linux.dev>
Subject: Re: [PATCH] RDMA/rxe: No need to check IPV6 in rxe_find_route
Date: Tue, 23 Aug 2022 02:49:52 +0800 [thread overview]
Message-ID: <202208230225.DS04ZlXH-lkp@intel.com> (raw)
In-Reply-To: <20220822112355.17635-1-guoqing.jiang@linux.dev>
Hi Guoqing,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on linus/master v6.0-rc2 next-20220822]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Guoqing-Jiang/RDMA-rxe-No-need-to-check-IPV6-in-rxe_find_route/20220822-192520
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: ia64-buildonly-randconfig-r005-20220822 (https://download.01.org/0day-ci/archive/20220823/202208230225.DS04ZlXH-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/9d154e806104f75aae6c66dfd78ecd5e67c7e00d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Guoqing-Jiang/RDMA-rxe-No-need-to-check-IPV6-in-rxe_find_route/20220822-192520
git checkout 9d154e806104f75aae6c66dfd78ecd5e67c7e00d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/sw/rxe/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_net.c: In function 'rxe_find_route':
>> drivers/infiniband/sw/rxe/rxe_net.c:118:41: error: implicit declaration of function 'rt6_get_cookie' [-Werror=implicit-function-declaration]
118 | rt6_get_cookie((struct rt6_info *)dst);
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/rt6_get_cookie +118 drivers/infiniband/sw/rxe/rxe_net.c
8700e3e7c4857d Moni Shoua 2016-06-16 88
3db2bceb29fd9a Parav Pandit 2018-08-28 89 static struct dst_entry *rxe_find_route(struct net_device *ndev,
4ed6ad1eb30e20 yonatanc 2017-04-20 90 struct rxe_qp *qp,
4ed6ad1eb30e20 yonatanc 2017-04-20 91 struct rxe_av *av)
4ed6ad1eb30e20 yonatanc 2017-04-20 92 {
4ed6ad1eb30e20 yonatanc 2017-04-20 93 struct dst_entry *dst = NULL;
4ed6ad1eb30e20 yonatanc 2017-04-20 94
4ed6ad1eb30e20 yonatanc 2017-04-20 95 if (qp_type(qp) == IB_QPT_RC)
4ed6ad1eb30e20 yonatanc 2017-04-20 96 dst = sk_dst_get(qp->sk->sk);
4ed6ad1eb30e20 yonatanc 2017-04-20 97
b9109b7ddb13a5 Andrew Boyer 2017-08-28 98 if (!dst || !dst_check(dst, qp->dst_cookie)) {
4ed6ad1eb30e20 yonatanc 2017-04-20 99 if (dst)
4ed6ad1eb30e20 yonatanc 2017-04-20 100 dst_release(dst);
4ed6ad1eb30e20 yonatanc 2017-04-20 101
e0d696d201dd5d Jason Gunthorpe 2020-10-15 102 if (av->network_type == RXE_NETWORK_TYPE_IPV4) {
4ed6ad1eb30e20 yonatanc 2017-04-20 103 struct in_addr *saddr;
4ed6ad1eb30e20 yonatanc 2017-04-20 104 struct in_addr *daddr;
4ed6ad1eb30e20 yonatanc 2017-04-20 105
4ed6ad1eb30e20 yonatanc 2017-04-20 106 saddr = &av->sgid_addr._sockaddr_in.sin_addr;
4ed6ad1eb30e20 yonatanc 2017-04-20 107 daddr = &av->dgid_addr._sockaddr_in.sin_addr;
43c9fc509fa59d Martin Wilck 2018-02-14 108 dst = rxe_find_route4(ndev, saddr, daddr);
e0d696d201dd5d Jason Gunthorpe 2020-10-15 109 } else if (av->network_type == RXE_NETWORK_TYPE_IPV6) {
4ed6ad1eb30e20 yonatanc 2017-04-20 110 struct in6_addr *saddr6;
4ed6ad1eb30e20 yonatanc 2017-04-20 111 struct in6_addr *daddr6;
4ed6ad1eb30e20 yonatanc 2017-04-20 112
4ed6ad1eb30e20 yonatanc 2017-04-20 113 saddr6 = &av->sgid_addr._sockaddr_in6.sin6_addr;
4ed6ad1eb30e20 yonatanc 2017-04-20 114 daddr6 = &av->dgid_addr._sockaddr_in6.sin6_addr;
43c9fc509fa59d Martin Wilck 2018-02-14 115 dst = rxe_find_route6(ndev, saddr6, daddr6);
b9109b7ddb13a5 Andrew Boyer 2017-08-28 116 if (dst)
b9109b7ddb13a5 Andrew Boyer 2017-08-28 117 qp->dst_cookie =
b9109b7ddb13a5 Andrew Boyer 2017-08-28 @118 rt6_get_cookie((struct rt6_info *)dst);
4ed6ad1eb30e20 yonatanc 2017-04-20 119 }
24c937b39dfb10 Vijay Immanuel 2018-06-18 120
24c937b39dfb10 Vijay Immanuel 2018-06-18 121 if (dst && (qp_type(qp) == IB_QPT_RC)) {
24c937b39dfb10 Vijay Immanuel 2018-06-18 122 dst_hold(dst);
24c937b39dfb10 Vijay Immanuel 2018-06-18 123 sk_dst_set(qp->sk->sk, dst);
24c937b39dfb10 Vijay Immanuel 2018-06-18 124 }
4ed6ad1eb30e20 yonatanc 2017-04-20 125 }
4ed6ad1eb30e20 yonatanc 2017-04-20 126 return dst;
4ed6ad1eb30e20 yonatanc 2017-04-20 127 }
4ed6ad1eb30e20 yonatanc 2017-04-20 128
--
0-DAY CI Kernel Test Service
https://01.org/lkp
prev parent reply other threads:[~2022-08-22 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 11:23 [PATCH] RDMA/rxe: No need to check IPV6 in rxe_find_route Guoqing Jiang
2022-08-22 16:33 ` William Kucharski
2022-08-23 0:39 ` Guoqing Jiang
2022-08-22 18:49 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202208230225.DS04ZlXH-lkp@intel.com \
--to=lkp@intel.com \
--cc=guoqing.jiang@linux.dev \
--cc=jgg@ziepe.ca \
--cc=kbuild-all@lists.01.org \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=yanjun.zhu@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.