]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Cure noinstr fail
authorPeter Zijlstra <peterz@infradead.org>
Wed, 6 Jan 2021 14:36:22 +0000 (15:36 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Jan 2021 20:10:59 +0000 (21:10 +0100)
commit3234a64b8769877fd3d2ccab4b2fe836e1c2669c
treea8ec61bd01d73b207dc9e9c8ab7d5f12fa79b405
parent86c61d166b1e4d7c400d6f5b0063cb1c1a2c3dd8
locking/lockdep: Cure noinstr fail

When the compiler doesn't feel like inlining, it causes a noinstr
fail:

  vmlinux.o: warning: objtool: lock_is_held_type()+0xb: call to lockdep_enabled() leaves .noinstr.text section

Fixes: de412324aec7 ("lockdep: Fix lockdep recursion")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210106144017.592595176@infradead.org
kernel/locking/lockdep.c