From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753912AbcAHBaE (ORCPT ); Thu, 7 Jan 2016 20:30:04 -0500 Received: from e37.co.us.ibm.com ([32.97.110.158]:52639 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbcAHBaB (ORCPT ); Thu, 7 Jan 2016 20:30:01 -0500 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: paulmck@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Thu, 7 Jan 2016 17:30:07 -0800 From: "Paul E. McKenney" To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan Subject: Re: [PATCH] kernel: make rcu/tiny_plugin.h explicitly non-modular Message-ID: <20160108013007.GY3818@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <1452211519-4214-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452211519-4214-1-git-send-email-paul.gortmaker@windriver.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16010801-0025-0000-0000-0000202DD803 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2016 at 07:05:19PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > init/Kconfig:config TINY_RCU > init/Kconfig: bool > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the modular code that is essentially orphaned, so that > when reading the code there is no doubt it is builtin-only. > > Since module_init translates to device_initcall in the non-modular > case, the init ordering remains unchanged with this commit. We could > consider moving this to an earlier initcall (subsys?) if desired. > > We also delete the MODULE_LICENSE tag etc. since all that information > is already contained at the top of the file in the comments. > > Cc: "Paul E. McKenney" > Cc: Josh Triplett > Cc: Steven Rostedt > Cc: Mathieu Desnoyers > Cc: Lai Jiangshan > Signed-off-by: Paul Gortmaker Queued for review and testing, thank you! Thanx, Paul > --- > kernel/rcu/tiny_plugin.h | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/kernel/rcu/tiny_plugin.h b/kernel/rcu/tiny_plugin.h > index e492a5253e0f..196f0302e2f4 100644 > --- a/kernel/rcu/tiny_plugin.h > +++ b/kernel/rcu/tiny_plugin.h > @@ -23,7 +23,7 @@ > */ > > #include > -#include > +#include > #include > #include > > @@ -122,18 +122,7 @@ free_out: > debugfs_remove_recursive(rcudir); > return 1; > } > - > -static void __exit rcutiny_trace_cleanup(void) > -{ > - debugfs_remove_recursive(rcudir); > -} > - > -module_init(rcutiny_trace_init); > -module_exit(rcutiny_trace_cleanup); > - > -MODULE_AUTHOR("Paul E. McKenney"); > -MODULE_DESCRIPTION("Read-Copy Update tracing for tiny implementation"); > -MODULE_LICENSE("GPL"); > +device_initcall(rcutiny_trace_init); > > static void check_cpu_stall(struct rcu_ctrlblk *rcp) > { > -- > 2.6.1 >