Skip to content

Commit

Permalink
rcuclassic: fix compilation NG
Browse files Browse the repository at this point in the history
fix:

  CC      kernel/rcuclassic.o
kernel/rcuclassic.c: In function '__rcu_process_callbacks':
kernel/rcuclassic.c:561: error: 'flags' undeclared (first use in this function)
kernel/rcuclassic.c:561: error: (Each undeclared identifier is reported only once
kernel/rcuclassic.c:561: error: for each function it appears in.)

Declare missing variable flags.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Aug 19, 2008
1 parent eff9b71 commit 0c925d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/rcuclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp,
local_irq_enable();

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

/* and start it/schedule start if it's a new batch */
spin_lock_irqsave(&rcp->lock, flags);
if (rcu_batch_after(rdp->batch, rcp->pending)) {
Expand Down

0 comments on commit 0c925d7

Please sign in to comment.