Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
	sowmini.varadhan@oracle.com, davem@davemloft.net,
	stephen@networkplumber.org
Subject: Re: [PATCH net-next] neigh: Really delete an arp/neigh entry on "ip neigh delete" or "arp -d"
Date: Thu, 1 Jun 2017 00:56:55 +0800	[thread overview]
Message-ID: <201706010053.Bl7sLCqr%fengguang.wu@intel.com> (raw)
In-Reply-To: <1496173944-82125-1-git-send-email-sowmini.varadhan@oracle.com>

[-- Attachment #1: Type: text/plain, Size: 5956 bytes --]

Hi Sowmini,

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Sowmini-Varadhan/neigh-Really-delete-an-arp-neigh-entry-on-ip-neigh-delete-or-arp-d/20170531-235737
config: x86_64-allyesdebian (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=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/srcu.h:33:0,
                    from include/linux/notifier.h:15,
                    from include/linux/memory_hotplug.h:6,
                    from include/linux/mmzone.h:757,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:14,
                    from net//core/neighbour.c:20:
   net//core/neighbour.c: In function 'neigh_del':
   net//core/neighbour.c:130:25: error: 'tbl' undeclared (first use in this function)
           lockdep_is_held(&tbl->lock)));
                            ^
   include/linux/rcupdate.h:637:36: note: in definition of macro 'rcu_assign_pointer'
     uintptr_t _r_a_p__v = (uintptr_t)(v);          \
                                       ^
>> include/linux/rcupdate.h:587:2: note: in expansion of macro 'RCU_LOCKDEP_WARN'
     RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
     ^~~~~~~~~~~~~~~~
>> include/linux/rcupdate.h:751:2: note: in expansion of macro '__rcu_dereference_protected'
     __rcu_dereference_protected((p), (c), __rcu)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net//core/neighbour.c:129:8: note: in expansion of macro 'rcu_dereference_protected'
           rcu_dereference_protected(n->next,
           ^~~~~~~~~~~~~~~~~~~~~~~~~
>> net//core/neighbour.c:130:8: note: in expansion of macro 'lockdep_is_held'
           lockdep_is_held(&tbl->lock)));
           ^~~~~~~~~~~~~~~
   net//core/neighbour.c:130:25: note: each undeclared identifier is reported only once for each function it appears in
           lockdep_is_held(&tbl->lock)));
                            ^
   include/linux/rcupdate.h:637:36: note: in definition of macro 'rcu_assign_pointer'
     uintptr_t _r_a_p__v = (uintptr_t)(v);          \
                                       ^
>> include/linux/rcupdate.h:587:2: note: in expansion of macro 'RCU_LOCKDEP_WARN'
     RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
     ^~~~~~~~~~~~~~~~
>> include/linux/rcupdate.h:751:2: note: in expansion of macro '__rcu_dereference_protected'
     __rcu_dereference_protected((p), (c), __rcu)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net//core/neighbour.c:129:8: note: in expansion of macro 'rcu_dereference_protected'
           rcu_dereference_protected(n->next,
           ^~~~~~~~~~~~~~~~~~~~~~~~~
>> net//core/neighbour.c:130:8: note: in expansion of macro 'lockdep_is_held'
           lockdep_is_held(&tbl->lock)));
           ^~~~~~~~~~~~~~~
--
   In file included from include/linux/srcu.h:33:0,
                    from include/linux/notifier.h:15,
                    from include/linux/memory_hotplug.h:6,
                    from include/linux/mmzone.h:757,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:14,
                    from net/core/neighbour.c:20:
   net/core/neighbour.c: In function 'neigh_del':
   net/core/neighbour.c:130:25: error: 'tbl' undeclared (first use in this function)
           lockdep_is_held(&tbl->lock)));
                            ^
   include/linux/rcupdate.h:637:36: note: in definition of macro 'rcu_assign_pointer'
     uintptr_t _r_a_p__v = (uintptr_t)(v);          \
                                       ^
>> include/linux/rcupdate.h:587:2: note: in expansion of macro 'RCU_LOCKDEP_WARN'
     RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
     ^~~~~~~~~~~~~~~~
>> include/linux/rcupdate.h:751:2: note: in expansion of macro '__rcu_dereference_protected'
     __rcu_dereference_protected((p), (c), __rcu)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/core/neighbour.c:129:8: note: in expansion of macro 'rcu_dereference_protected'
           rcu_dereference_protected(n->next,
           ^~~~~~~~~~~~~~~~~~~~~~~~~
   net/core/neighbour.c:130:8: note: in expansion of macro 'lockdep_is_held'
           lockdep_is_held(&tbl->lock)));
           ^~~~~~~~~~~~~~~
   net/core/neighbour.c:130:25: note: each undeclared identifier is reported only once for each function it appears in
           lockdep_is_held(&tbl->lock)));
                            ^
   include/linux/rcupdate.h:637:36: note: in definition of macro 'rcu_assign_pointer'
     uintptr_t _r_a_p__v = (uintptr_t)(v);          \
                                       ^
>> include/linux/rcupdate.h:587:2: note: in expansion of macro 'RCU_LOCKDEP_WARN'
     RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
     ^~~~~~~~~~~~~~~~
>> include/linux/rcupdate.h:751:2: note: in expansion of macro '__rcu_dereference_protected'
     __rcu_dereference_protected((p), (c), __rcu)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/core/neighbour.c:129:8: note: in expansion of macro 'rcu_dereference_protected'
           rcu_dereference_protected(n->next,
           ^~~~~~~~~~~~~~~~~~~~~~~~~
   net/core/neighbour.c:130:8: note: in expansion of macro 'lockdep_is_held'
           lockdep_is_held(&tbl->lock)));
           ^~~~~~~~~~~~~~~

vim +/rcu_dereference_protected +129 net//core/neighbour.c

   123	{
   124		bool retval = false;
   125	
   126		write_lock(&n->lock);
   127		if (atomic_read(&n->refcnt) == 1 && !(n->nud_state & state)) {
   128			rcu_assign_pointer(*np,
 > 129					   rcu_dereference_protected(n->next,
 > 130					   lockdep_is_held(&tbl->lock)));
   131			n->dead = 1;
   132			retval = true;
   133		}

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38863 bytes --]

      parent reply	other threads:[~2017-05-31 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-30 19:52 [PATCH net-next] neigh: Really delete an arp/neigh entry on "ip neigh delete" or "arp -d" Sowmini Varadhan
2017-05-31 16:30 ` kbuild test robot
2017-05-31 16:56 ` kbuild 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=201706010053.Bl7sLCqr%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=sowmini.varadhan@oracle.com \
    --cc=stephen@networkplumber.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox