lkml.org 
[lkml]   [2014]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH tip/core/rcu 17/55] rcutorture: Abstract torture_param()
On Mon, Feb 17, 2014 at 04:23:01PM -0800, Josh Triplett wrote:
> On Mon, Feb 17, 2014 at 02:12:21PM -0800, Paul E. McKenney wrote:
> > From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
> >
> > Create a torture_param() macro and apply it to rcutorture in order to
> > save a few lines of code. This same macro may be applied to other
> > torture frameworks.
> >
> > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>
> Your commit message says "torture_param", but your code says
> "torture_parm". Let's go with the former, please; no need to creat more
> disemvoweled abbreviations.

Gd pnt, fxd s sggstd.

> Also, this seems rather generally useful. A quick check with "git grep
> -B2 MODULE_PARM_DESC" turns up numerous instances of the pattern. You
> might consider adding this as a helper DECLARE_MODULE_PARAM_RO in
> include/linux/moduleparam.h (possibly calling a generalized version that
> takes the mode as another parameter).

Added to the todo list. Another parameter is static vs. not -- I only
had one non-static instance, which I left open-coded.

Thanx, Paul



\
 
 \ /
  Last update: 2014-02-18 23:21    [W:1.686 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site