Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751710Ab2FHEIB (ORCPT ); Fri, 8 Jun 2012 00:08:01 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:57095 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812Ab2FHEH7 (ORCPT ); Fri, 8 Jun 2012 00:07:59 -0400 Date: Thu, 7 Jun 2012 21:07:15 -0700 From: "Paul E. McKenney" To: Mark Brown Cc: David Brown , Randy Dunlap , Stephen Rothwell , linux-next@vger.kernel.org, LKML Subject: Re: linux-next: Tree for Jun 7 (fs / block / rcu) Message-ID: <20120608040715.GA868@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20120607131802.d90de854f06c5530c5fb2b33@canb.auug.org.au> <4FD0DD9F.5040206@xenotime.net> <20120607200007.GA3352@codeaurora.org> <20120607223107.GA21150@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120607223107.GA21150@sirena.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12060804-1976-0000-0000-00000DEDAFE1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1913 Lines: 55 On Thu, Jun 07, 2012 at 11:31:07PM +0100, Mark Brown wrote: > On Thu, Jun 07, 2012 at 01:00:07PM -0700, David Brown wrote: > > On Thu, Jun 07, 2012 at 09:58:07AM -0700, Randy Dunlap wrote: > > > net/built-in.o:/home/davidb/upstream/kdev/kernel/include/linux/rcupdate.h:312: more undefined references to `rcu_is_cpu_idle' follow > > This is because rcu_is_cpu_idle() is only defined if PROVE_RCU but it's > used in a bunch of other cases. The following should clear it up, please accept my apologies for the hassle. Thanx, Paul ------------------------------------------------------------------------ rcu: Fix rcu_is_cpu_idle() #ifdef in TINY_RCU The rcu_is_cpu_idle() function is used if CONFIG_DEBUG_LOCK_ALLOC, but TINY_RCU defines it only when CONFIG_PROVE_RCU. This causes build failures when CONFIG_DEBUG_LOCK_ALLOC=y but CONFIG_PROVE_RCU=n. This commit therefore adjusts the #ifdefs for rcu_is_cpu_idle() so that it is defined when CONFIG_DEBUG_LOCK_ALLOC=y. Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c index 37a5444..547b1fe 100644 --- a/kernel/rcutiny.c +++ b/kernel/rcutiny.c @@ -172,7 +172,7 @@ void rcu_irq_enter(void) local_irq_restore(flags); } -#ifdef CONFIG_PROVE_RCU +#ifdef CONFIG_DEBUG_LOCK_ALLOC /* * Test whether RCU thinks that the current CPU is idle. @@ -183,7 +183,7 @@ int rcu_is_cpu_idle(void) } EXPORT_SYMBOL(rcu_is_cpu_idle); -#endif /* #ifdef CONFIG_PROVE_RCU */ +#endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ /* * Test whether the current CPU was interrupted from idle. Nested -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/