summaryrefslogtreecommitdiff
path: root/include/linux/cleanup.h
diff options
context:
space:
mode:
authorBoqun Feng <boqun.feng@gmail.com>2023-07-15 16:52:57 -0700
committerPeter Zijlstra <peterz@infradead.org>2023-07-26 12:29:13 +0200
commitf66c538098b61e2eb596bb88fae90dbd2cebb378 (patch)
tree6f83a87048cd66f6a2a7304c3f4b6cadb356dfab /include/linux/cleanup.h
parent6eaae198076080886b9e7d57f4ae06fa782f90ef (diff)
lockdep/selftests: Use SBRM APIs for wait context tests
The "__cleanup__" attribute is already used for wait context tests, so using it for locking tests has already been proven working. Now since SBRM APIs are merged, let's use these APIs instead of a local guard framework. This also helps testing SBRM APIs. Note that originally the tests don't rely on the cleanup ordering of two variables in the same scope, but since now it's something we'd like to assume and rely on[1], drop the extra scope in inner_in_outer() function. Again this gives us another opportunity to test the compiler behavior. [1]: https://lore.kernel.org/lkml/CAHk-=whEsr6fuVSdsoNPokLR2fZiGuo_hCLyrS-LCw7hT_N7cQ@mail.gmail.com/ Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20230715235257.110325-1-boqun.feng@gmail.com
Diffstat (limited to 'include/linux/cleanup.h')
0 files changed, 0 insertions, 0 deletions