* [rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean
@ 2021-02-12 7:25 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-12 7:25 UTC (permalink / raw)
To: Jason Gunthorpe; +Cc: kbuild-all, Doug Ledford, Jason Gunthorpe, linux-rdma
[-- Attachment #1: Type: text/plain, Size: 2572 bytes --]
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-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=a8ef74e70f50f10d741bb64757dd205318dfd9c7
git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma wip/for-testing
git checkout a8ef74e70f50f10d741bb64757dd205318dfd9c7
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_net.c: In function 'rxe_udp_encap_recv':
>> drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared (first use in this function); did you mean 'ndev'?
164 | if (!rxe && is_vlan_dev(rdev))
| ^~~~
| ndev
drivers/infiniband/sw/rxe/rxe_net.c:164:26: note: each undeclared identifier is reported only once for each function it appears in
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45940 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean
@ 2021-02-12 7:25 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-12 7:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]
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-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=a8ef74e70f50f10d741bb64757dd205318dfd9c7
git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma wip/for-testing
git checkout a8ef74e70f50f10d741bb64757dd205318dfd9c7
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_net.c: In function 'rxe_udp_encap_recv':
>> drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared (first use in this function); did you mean 'ndev'?
164 | if (!rxe && is_vlan_dev(rdev))
| ^~~~
| ndev
drivers/infiniband/sw/rxe/rxe_net.c:164:26: note: each undeclared identifier is reported only once for each function it appears in
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45940 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-12 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-12 7:25 [rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean kernel test robot
2021-02-12 7:25 ` kernel test robot
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.