tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/for-testing
head: a8ef74e70f50f10d741bb64757dd205318dfd9c7
commit: a8ef74e70f50f10d741bb64757dd205318dfd9c7 [1/1] Merge branch 'k.o/for-next'
into k.o/wip/for-testing
config: x86_64-randconfig-a014-20210209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=...
git remote add rdma-rdma
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma-rdma wip/for-testing
git checkout a8ef74e70f50f10d741bb64757dd205318dfd9c7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: use of
undeclared identifier 'rdev'; did you mean 'ndev'?
if
(!rxe && is_vlan_dev(rdev))
^~~~
ndev
drivers/infiniband/sw/rxe/rxe_net.c:157:21: note: 'ndev' declared here
struct net_device *ndev = skb->dev;
^
1 error generated.
vim +164 drivers/infiniband/sw/rxe/rxe_net.c
152
153 static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
154 {
155 struct udphdr *udph;
156 struct rxe_dev *rxe;
157 struct net_device *ndev = skb->dev;
158 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb);
159
160 /* takes a reference on rxe->ib_dev
161 * drop when skb is freed
162 */
163 rxe = rxe_get_dev_from_net(ndev);
164 if (!rxe && is_vlan_dev(rdev))
165 rxe =
rxe_get_dev_from_net(vlan_dev_real_dev(ndev));
166 if (!rxe)
167 goto drop;
168
169 if (skb_linearize(skb)) {
170 pr_err("skb_linearize failed\n");
171 ib_device_put(&rxe->ib_dev);
172 goto drop;
173 }
174
175 udph = udp_hdr(skb);
176 pkt->rxe = rxe;
177 pkt->port_num = 1;
178 pkt->hdr = (u8 *)(udph + 1);
179 pkt->mask = RXE_GRH_MASK;
180 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph);
181
182 rxe_rcv(skb);
183
184 return 0;
185 drop:
186 kfree_skb(skb);
187
188 return 0;
189 }
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org