summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/tests/ABBCCDDA.c
blob: 33620e268f85f3b8d8a233d6dc91ed91e6117a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <liblockdep/mutex.h>
#include "common.h"

void main(void)
{
	pthread_mutex_t a, b, c, d;

	pthread_mutex_init(&a, NULL);
	pthread_mutex_init(&b, NULL);
	pthread_mutex_init(&c, NULL);
	pthread_mutex_init(&d, NULL);

	LOCK_UNLOCK_2(a, b);
	LOCK_UNLOCK_2(b, c);
	LOCK_UNLOCK_2(c, d);
	LOCK_UNLOCK_2(d, a);
}
lass='right'>2017-02-06 16:33:29 -0500 commitd0d7b10b05945f40fefd4e60f457c61aefa3e9a9 (patch) tree1904a8455fc02954af05242261ee36feb1e45d1d /drivers/usb/class/usblp.c parent73cfb2a2e49e166c569360ee60fe023b3efe3cf6 (diff)
net-next: treewide use is_vlan_dev() helper function.
This patch makes use of is_vlan_dev() function instead of flag comparison which is exactly done by is_vlan_dev() helper function. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Jon Maxwell <jmaxwell37@gmail.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Acked-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/class/usblp.c')