Skip to content

Commit 04dce7d

Browse files
ozbenhIngo Molnar
authored andcommitted
spinlock: Add missing __raw_spin_lock_flags() stub for UP
This was only defined with CONFIG_DEBUG_SPINLOCK set, but some obscure arch/powerpc code wants it always. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent a511e3f commit 04dce7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/spinlock_up.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ static inline void __raw_spin_unlock(raw_spinlock_t *lock)
6060
#define __raw_spin_is_locked(lock) ((void)(lock), 0)
6161
/* for sched.c and kernel_lock.c: */
6262
# define __raw_spin_lock(lock) do { (void)(lock); } while (0)
63+
# define __raw_spin_lock_flags(lock, flags) do { (void)(lock); } while (0)
6364
# define __raw_spin_unlock(lock) do { (void)(lock); } while (0)
6465
# define __raw_spin_trylock(lock) ({ (void)(lock); 1; })
6566
#endif /* DEBUG_SPINLOCK */

0 commit comments

Comments
 (0)