diff options
author | jasone <jasone@FreeBSD.org> | 2001-01-21 11:05:02 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2001-01-21 11:05:02 +0000 |
commit | c3fd76623a8f581a65a4d4b1eb43ce94c717d41c (patch) | |
tree | 36a5267d234dee36c368182d6c14fea4d8b6aa12 /sys/kern/kern_mutex.c | |
parent | 9c4d942508aa142dc84c8dffc05cafeb76564b71 (diff) | |
download | FreeBSD-src-c3fd76623a8f581a65a4d4b1eb43ce94c717d41c.zip FreeBSD-src-c3fd76623a8f581a65a4d4b1eb43ce94c717d41c.tar.gz |
Make the order of the static initializer for all_mtx match the order of
fields in struct mtx.
Found by: jake
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index d996459..b3c6e7e 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -88,7 +88,7 @@ #ifdef WITNESS static struct mtx_debug all_mtx_debug = { NULL, {NULL, NULL}, NULL, 0, "All mutexes queue head" }; -static struct mtx all_mtx = { 0, MTX_UNOWNED, 0, 0, {&all_mtx_debug}, +static struct mtx all_mtx = { MTX_UNOWNED, 0, 0, 0, {&all_mtx_debug}, TAILQ_HEAD_INITIALIZER(all_mtx.mtx_blocked), { NULL, NULL }, &all_mtx, &all_mtx }; /* @@ -97,7 +97,7 @@ static struct mtx all_mtx = { 0, MTX_UNOWNED, 0, 0, {&all_mtx_debug}, */ static int witness_cold = 1; #else /* WITNESS */ -static struct mtx all_mtx = { 0, MTX_UNOWNED, 0, 0, {"All mutexes queue head"}, +static struct mtx all_mtx = { MTX_UNOWNED, 0, 0, 0, {"All mutexes queue head"}, TAILQ_HEAD_INITIALIZER(all_mtx.mtx_blocked), { NULL, NULL }, &all_mtx, &all_mtx }; #endif /* WITNESS */ |