]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/lockdep: Add a test for lockdep_set_subclass()
authorAhmed Ehab <bottaawesome633@gmail.com>
Thu, 5 Sep 2024 01:12:20 +0000 (04:12 +0300)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 18 Oct 2024 04:21:16 +0000 (21:21 -0700)
commit5eadeb7b3bc206e2ac9494e9499e7c1f1e44eab7
tree3c0c84462879825ebae135c3f5aa0a6ef6536ae4
parentd7fe143cb115076fed0126ad8cf5ba6c3e575e43
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: Ahmed Ehab <bottaawesome633@gmail.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/lkml/20240905011220.356973-1-bottaawesome633@gmail.com/
lib/locking-selftest.c