public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org
Subject: Re: [rcu:rcu/next 51/58] mm/mmu_notifier.c:259:14: error: 'struct srcu_struct' has no member named 'per_cpu_ref'
Date: Tue, 11 Apr 2017 18:47:23 -0700	[thread overview]
Message-ID: <20170412014723.GC3956@linux.vnet.ibm.com> (raw)
In-Reply-To: <201704120749.qzDAIUMS%fengguang.wu@intel.com>

On Wed, Apr 12, 2017 at 07:44:53AM +0800, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
> head:   b9d38ad8ef2a0ae0ba6e03ac6bf8085382a9c98c
> commit: 89489e6fa42785b3fc4c78f46c78cb73b9a164d3 [51/58] srcu: Create a tiny SRCU
> config: x86_64-randconfig-ne0-04120549 (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
>         git checkout 89489e6fa42785b3fc4c78f46c78cb73b9a164d3
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
> 
> Note: the rcu/rcu/next HEAD b9d38ad8ef2a0ae0ba6e03ac6bf8085382a9c98c builds fine.
>       It only hurts bisectibility.

Commits in wrong order, fixed!

							Thanx, Paul

> All error/warnings (new ones prefixed by >>):
> 
>    In file included from include/uapi/linux/stddef.h:1:0,
>                     from include/linux/stddef.h:4,
>                     from include/uapi/linux/posix_types.h:4,
>                     from include/uapi/linux/types.h:13,
>                     from include/linux/types.h:5,
>                     from include/linux/list.h:4,
>                     from include/linux/rculist.h:9,
>                     from mm/mmu_notifier.c:12:
>    mm/mmu_notifier.c: In function 'do_mmu_notifier_register':
> >> mm/mmu_notifier.c:259:14: error: 'struct srcu_struct' has no member named 'per_cpu_ref'
>      BUG_ON(!srcu.per_cpu_ref);
>                  ^
>    include/linux/compiler.h:179:42: note: in definition of macro 'unlikely'
>     # define unlikely(x) __builtin_expect(!!(x), 0)
>                                              ^
> >> mm/mmu_notifier.c:259:2: note: in expansion of macro 'BUG_ON'
>      BUG_ON(!srcu.per_cpu_ref);
>      ^~~~~~
> 
> vim +259 mm/mmu_notifier.c
> 
> cddb8a5c Andrea Arcangeli 2008-07-28  253  	BUG_ON(atomic_read(&mm->mm_users) <= 0);
> cddb8a5c Andrea Arcangeli 2008-07-28  254  
> 21a92735 Sagi Grimberg    2012-10-08  255  	/*
> 21a92735 Sagi Grimberg    2012-10-08  256  	 * Verify that mmu_notifier_init() already run and the global srcu is
> 21a92735 Sagi Grimberg    2012-10-08  257  	 * initialized.
> 21a92735 Sagi Grimberg    2012-10-08  258  	 */
> 21a92735 Sagi Grimberg    2012-10-08 @259  	BUG_ON(!srcu.per_cpu_ref);
> 21a92735 Sagi Grimberg    2012-10-08  260  
> 35cfa2b0 Gavin Shan       2012-10-25  261  	ret = -ENOMEM;
> 35cfa2b0 Gavin Shan       2012-10-25  262  	mmu_notifier_mm = kmalloc(sizeof(struct mmu_notifier_mm), GFP_KERNEL);
> 
> :::::: The code at line 259 was first introduced by commit
> :::::: 21a92735f660eaecf69a6f2e777f18463760ec32 mm: mmu_notifier: have mmu_notifiers use a global SRCU so they may safely schedule
> 
> :::::: TO: Sagi Grimberg <sagig@mellanox.co.il>
> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

      reply	other threads:[~2017-04-12  1:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 23:44 [rcu:rcu/next 51/58] mm/mmu_notifier.c:259:14: error: 'struct srcu_struct' has no member named 'per_cpu_ref' kbuild test robot
2017-04-12  1:47 ` Paul E. McKenney [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=20170412014723.GC3956@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox