mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 01:30:55 +07:00
rcuclassic: fix compilation NG
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>
This commit is contained in:
parent
eff9b713ee
commit
0c925d7923
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user