Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bfe0298 authored by Rabin Vincent's avatar Rabin Vincent Committed by Ingo Molnar
Browse files

lockdep: handle chains involving classes defined in modules



Solve this by marking the classes as unused and not printing information
about the unused classes.

Reported-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Acked-by: default avatarHuang Ying <ying.huang@intel.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7cd5a02f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3176,6 +3176,7 @@ static void zap_class(struct lock_class *class)
	list_del_rcu(&class->hash_entry);
	list_del_rcu(&class->lock_entry);

	class->key = NULL;
}

static inline int within(const void *addr, void *start, unsigned long size)
+3 −0
Original line number Diff line number Diff line
@@ -201,6 +201,9 @@ static int lc_show(struct seq_file *m, void *v)

	for (i = 0; i < chain->depth; i++) {
		class = lock_chain_get_class(chain, i);
		if (!class->key)
			continue;

		seq_printf(m, "[%p] ", class->key);
		print_name(m, class);
		seq_puts(m, "\n");