All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: kbuild-all@lists.01.org, Doug Ledford <dledford@redhat.com>,
	Jason Gunthorpe <jgg+lists@ziepe.ca>,
	linux-rdma@vger.kernel.org
Subject: [rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean
Date: Fri, 12 Feb 2021 15:25:14 +0800	[thread overview]
Message-ID: <202102121507.xtdig62L-lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: 'rdev' undeclared; did you mean
Date: Fri, 12 Feb 2021 15:25:14 +0800	[thread overview]
Message-ID: <202102121507.xtdig62L-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-02-12  7:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12  7:25 kernel test robot [this message]
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

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=202102121507.xtdig62L-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dledford@redhat.com \
    --cc=jgg+lists@ziepe.ca \
    --cc=jgg@nvidia.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-rdma@vger.kernel.org \
    /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.