Skip to content

Commit ac82a57

Browse files
committed
Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fixlet from Ingo Molnar: "Fixes a build warning on certain Kconfig combinations" * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/lockdep: Fix print_collision() unused warning
2 parents e2f50c5 + 5c8a010 commit ac82a57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/locking/lockdep.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,7 @@ static inline int get_first_held_lock(struct task_struct *curr,
19991999
return ++i;
20002000
}
20012001

2002+
#ifdef CONFIG_DEBUG_LOCKDEP
20022003
/*
20032004
* Returns the next chain_key iteration
20042005
*/
@@ -2069,6 +2070,7 @@ static void print_collision(struct task_struct *curr,
20692070
printk("\nstack backtrace:\n");
20702071
dump_stack();
20712072
}
2073+
#endif
20722074

20732075
/*
20742076
* Checks whether the chain and the current held locks are consistent

0 commit comments

Comments
 (0)