Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755570Ab1FIUMo (ORCPT ); Thu, 9 Jun 2011 16:12:44 -0400 Received: from blu0-omc1-s1.blu0.hotmail.com ([65.55.116.12]:14602 "EHLO blu0-omc1-s1.blu0.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755289Ab1FIUMm (ORCPT ); Thu, 9 Jun 2011 16:12:42 -0400 X-Originating-IP: [184.145.208.36] X-Originating-Email: [pdumas9@sympatico.ca] Message-ID: Date: Thu, 9 Jun 2011 16:12:38 -0400 From: Mathieu Desnoyers To: "Paul E. McKenney" CC: linux-kernel@vger.kernel.org, mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, eric.dumazet@gmail.com, darren@dvhart.com, patches@linaro.org Subject: Re: [PATCH tip/core/rcu 05/28] rcu: Move rcu_head definition to types.h References: <20110608192943.GA13211@linux.vnet.ibm.com> <1307561407-13809-5-git-send-email-paulmck@linux.vnet.ibm.com> <20110609000203.GO2324@linux.vnet.ibm.com> <20110609183838.GI2285@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20110609183838.GI2285@linux.vnet.ibm.com> X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.27.31-grsec (i686) X-Uptime: 16:12:21 up 428 days, 6:01, 4 users, load average: 0.19, 0.14, 0.10 User-Agent: Mutt/1.5.18 (2008-05-17) X-OriginalArrivalTime: 09 Jun 2011 20:12:41.0048 (UTC) FILETIME=[95D9D580:01CC26E1] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3067 Lines: 77 * Paul E. McKenney (paulmck@linux.vnet.ibm.com) wrote: > On Wed, Jun 08, 2011 at 08:11:52PM -0400, Mathieu Desnoyers wrote: > > * Paul E. McKenney (paulmck@linux.vnet.ibm.com) wrote: > > > On Wed, Jun 08, 2011 at 07:26:21PM -0400, Mathieu Desnoyers wrote: > > > > * Paul E. McKenney (paulmck@linux.vnet.ibm.com) wrote: > > > > > Take a first step towards untangling Linux kernel header files by > > > > > placing the struct rcu_head definition into include/linux/types.h. > > > > > Once this is in place, then header files that need only rcu_head > > > > > can include types.h rather than rcupdate.h. > > > > > > > > > > Signed-off-by: Paul E. McKenney > > > > > > > > Yes! I'm suddenly feeling the temperature drop by a few degrees in > > > > #include hell ;) One detail though: I think rcupdate.h should then > > > > include types.h. > > > > > > Glad you like it! > > > > > > But please see below. > > > > > > > Thanks, > > > > > > > > Mathieu > > > > > > > > > > > > > --- > > > > > include/linux/rcupdate.h | 10 +--------- > > > > > include/linux/types.h | 10 ++++++++++ > > > > > 2 files changed, 11 insertions(+), 9 deletions(-) > > > > > > > > > > diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h > > > > > index 8be0433..ad09eb8 100644 > > > > > --- a/include/linux/rcupdate.h > > > > > +++ b/include/linux/rcupdate.h > > > > > @@ -64,15 +64,7 @@ static inline void rcutorture_record_progress(unsigned long vernum) > > > > > #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) > > > > > #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) > > > > > > > > > > -/** > > > > > - * struct rcu_head - callback structure for use with RCU > > > > > - * @next: next update requests in a list > > > > > - * @func: actual update function to call after the grace period. > > > > > - */ > > > > > -struct rcu_head { > > > > > - struct rcu_head *next; > > > > > - void (*func)(struct rcu_head *head); > > > > > -}; > > > > > +#include > > > > > > And here you go! > > > > Hrm, I see. Here is why I missed it: I was expecting this #include to be > > added at the top of rcupdate.h instead of being added in the middle like > > you do here. Would it be acceptable to move this #include to the top of > > the file, or is there some other obscure reason for not doing so ? (I > > feel the temperature is suddenly rising) ;-) > > No reason, just laziness on my part. Seems to work OK when I move > it up -- which is no surprise, given that types.h is probably already > included by something before rcupdate.h is reached. So consider it > moved. Considering it moved, Acked-by: Mathieu Desnoyers -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com -- 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/