lkml.org 
[lkml]   [2009]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH tip/core/rcu 2/3] Apply results of code inspection of kernel/rcutree_plugin.h
On Fri, Sep 18, 2009 at 09:58:20AM -0700, Daniel Walker wrote:
> On Fri, 2009-09-18 at 09:50 -0700, Paul E. McKenney wrote:
>
> > diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
> > index 2b996c3..a2d586c 100644
> > --- a/kernel/rcutree_plugin.h
> > +++ b/kernel/rcutree_plugin.h
> > @@ -117,9 +117,9 @@ static void rcu_preempt_note_context_switch(int cpu)
> > * on line!
> > */
> > WARN_ON_ONCE((rdp->grpmask & rnp->qsmaskinit) == 0);
> > - phase = !(rnp->qsmask & rdp->grpmask) ^ (rnp->gpnum & 0x1);
> > + WARN_ON_ONCE(!list_empty(&t->rcu_node_entry));
> > + phase = (rnp->gpnum + !(rnp->qsmask & rdp->grpmask)) & 0x1;
> > list_add(&t->rcu_node_entry, &rnp->blocked_tasks[phase]);
> > - smp_mb(); /* Ensure later ctxt swtch seen after above. */
> > spin_unlock_irqrestore(&rnp->lock, flags);
> > }
>
> ERROR: code indent should use tabs where possible
> #149: FILE: kernel/rcutree_plugin.h:120:
> +^I ^IWARN_ON_ONCE(!list_empty(&t->rcu_node_entry));$
>
> One funny indent in the line above.. If your intending for Ingo to take
> this he might just fix it on apply ..

I will be submitting a patch shortly to clean up the whitespace errors
in the include/linux/rcu* and kernel/rcu* files.

Thanx, Paul


\
 
 \ /
  Last update: 2009-09-18 19:25    [W:2.301 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site