public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Dipankar Sarma <dipankar@in.ibm.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] rcu: ensure kernel/rcu/rcu.h can be sourced/used stand-alone
Date: Sun, 23 Feb 2014 09:27:14 -0800	[thread overview]
Message-ID: <20140223172714.GA3774@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140220090039.GQ4250@linux.vnet.ibm.com>

On Thu, Feb 20, 2014 at 01:00:39AM -0800, Paul E. McKenney wrote:
> On Wed, Feb 19, 2014 at 09:02:13PM -0500, Paul Gortmaker wrote:
> > [Re: [PATCH v2] rcu: ensure kernel/rcu/rcu.h can be sourced/used stand-alone] On 19/02/2014 (Wed 17:53) Paul E. McKenney wrote:
> > 
> > > On Wed, Feb 19, 2014 at 02:33:27PM -0500, Paul Gortmaker wrote:
> > > > The kbuild test bot uncovered an implicit dependence on the
> > > > trace header being present before rcu.h in ia64 allmodconfig
> > > > that looks like this:
> > > > 
> > > > In file included from kernel/ksysfs.c:22:0:
> > > > kernel/rcu/rcu.h: In function '__rcu_reclaim':
> > > > kernel/rcu/rcu.h:107:3: error: implicit declaration of function 'trace_rcu_invoke_kfree_callback' [-Werror=implicit-function-declaration]
> > > > kernel/rcu/rcu.h:112:3: error: implicit declaration of function 'trace_rcu_invoke_callback' [-Werror=implicit-function-declaration]
> > > > cc1: some warnings being treated as errors
> > > > 
> > > > Looking at other rcu.h users, we can find that they all
> > > > were sourcing the trace header in advance of rcu.h itself,
> > > > as seen in the context of this diff.  There were also some
> > > > inconsistencies as to whether it was or wasn't sourced based
> > > > on the parent tracing Kconfig.
> > > > 
> > > > Rather than "fix" it at each use site, and have inconsistent
> > > > use based on whether "#ifdef CONFIG_RCU_TRACE" was used or not,
> > > > lets just source the trace header just once, in the actual consumer
> > > > of it, which is rcu.h itself.  We include it unconditionally, as
> > > > build testing shows us that is a hard requirement for some files.
> > > > 
> > > > Reported-by: kbuild test robot <fengguang.wu@intel.com>
> > > > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> > > 
> > > Queued for 3.16, thank you, Paul!
> > 
> > Thanks!
> > 
> > I'm assuming you meant 3.15 -- unless of course you are allowing
> > for an insurance policy for me possibly breaking the build.  ;)
> 
> Well, it does seem to be doing better in testing.  ;-)
> 
> I split off the stuff for the 3.15 merge window a few days back, but
> if the lack of this patch is causing a problem, I could be talked into
> slipping it in.

And it does seem to be doing well, so I will be putting it forward for 3.15.

							Thanx, Paul


  reply	other threads:[~2014-02-23 17:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Message-ID: <20140219185850.GA23050@linux.vnet.ibm.com>
2014-02-19 19:33 ` [PATCH v2] rcu: ensure kernel/rcu/rcu.h can be sourced/used stand-alone Paul Gortmaker
2014-02-20  1:53   ` Paul E. McKenney
2014-02-20  2:02     ` Paul Gortmaker
2014-02-20  9:00       ` Paul E. McKenney
2014-02-23 17:27         ` Paul E. McKenney [this message]
2014-02-24  0:01           ` Paul Gortmaker
2014-02-24  1:18             ` Paul E. McKenney

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=20140223172714.GA3774@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=dipankar@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    /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