Commit 5eadeb7b authored by Ahmed Ehab's avatar Ahmed Ehab Committed by Boqun Feng
Browse files

locking/lockdep: Add a test for lockdep_set_subclass()



Add a test case to ensure that no new name string literal will be
created in lockdep_set_subclass(), otherwise a warning will be triggered
in look_up_lock_class(). Add this to catch the problem in the future.

[boqun: Reword the title, replace #if with #ifdef and rename functions
and variables]

Signed-off-by: default avatarAhmed Ehab <bottaawesome633@gmail.com>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/lkml/20240905011220.356973-1-bottaawesome633@gmail.com/
parent d7fe143c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment