1 #include "check_debug.h"
3 unsigned long arch_local_irq_save();
4 void arch_local_irq_restore(unsigned long flags
);
15 flags
= arch_local_irq_save();
16 __ret
= spin_trylock(&lock
);
18 arch_local_irq_restore(flags
);
26 * check-name: smatch locking #7
27 * check-command: smatch -p=kernel -I.. sm_locking7.c
30 sm_locking7.c:22 func() warn: inconsistent returns 'irqsave:flags'.
33 sm_locking7.c:22 func() warn: inconsistent returns 'spin_lock:&lock'.