mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
This patch makes sure that the lockdep_reset_lock() function gets tested. Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Waiman Long <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
16 lines
248 B
C
16 lines
248 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <liblockdep/mutex.h>
|
|
|
|
void main(void)
|
|
{
|
|
pthread_mutex_t a;
|
|
|
|
pthread_mutex_init(&a, NULL);
|
|
|
|
pthread_mutex_lock(&a);
|
|
pthread_mutex_unlock(&a);
|
|
pthread_mutex_unlock(&a);
|
|
|
|
pthread_mutex_destroy(&a);
|
|
}
|