Skip to content

Commit

Permalink
rcu: fix sparse shadowed variable warning
Browse files Browse the repository at this point in the history
kernel/rcuclassic.c:564:18: warning: symbol 'flags' shadows an earlier one
kernel/rcuclassic.c:527:16: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Sep 23, 2008
1 parent e8aed68 commit 3a72dc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/rcuclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,15 +561,15 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp,
local_irq_restore(flags);

if (rcu_batch_after(rdp->batch, rcp->pending)) {
unsigned long flags;
unsigned long flags2;

/* and start it/schedule start if it's a new batch */
spin_lock_irqsave(&rcp->lock, flags);
spin_lock_irqsave(&rcp->lock, flags2);
if (rcu_batch_after(rdp->batch, rcp->pending)) {
rcp->pending = rdp->batch;
rcu_start_batch(rcp);
}
spin_unlock_irqrestore(&rcp->lock, flags);
spin_unlock_irqrestore(&rcp->lock, flags2);
}
}

Expand Down

0 comments on commit 3a72dc8

Please sign in to comment.