[PATCH 0/3] riscv: Enable LOCKDEP

From: guoren
Date: Tue Jun 16 2020 - 11:58:10 EST


From: Guo Ren <guoren@xxxxxxxxxxxxxxxxx>

Lockdep is needed by proving the spinlocks and rwlocks. To suupport
it, we need fixup TRACE_IRQFLAGS_SUPPORT in kernel/entry.S. This
patch follow Documentation/irqflags-tracing.txt.

And there are 2 bugs block the lockdep implementation.

Guo Ren (2):
riscv: Fixup static_obj() fail
riscv: Enable LOCKDEP_SUPPORT & fixup TRACE_IRQFLAGS_SUPPORT

Zong Li (1):
riscv: Fixup lockdep_assert_held with wrong param cpu_running

arch/riscv/Kconfig | 3 +++
arch/riscv/kernel/entry.S | 41 ++++++++++++++++++++++++++++++++++++++++-
arch/riscv/kernel/smpboot.c | 1 -
arch/riscv/kernel/vmlinux.lds.S | 2 +-
4 files changed, 44 insertions(+), 3 deletions(-)

--
2.7.4