summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2005-07-08 18:36:59 +0000
committerrik <rik@FreeBSD.org>2005-07-08 18:36:59 +0000
commitd732ff5ca26d05955ce97f2f7b9f6bb7d117120f (patch)
tree28d42cf03e2e98db3748fff4fd5f51432a91a232 /sys
parent20d38d6afa4b51693c5ff741323a2ba23993e6a7 (diff)
downloadFreeBSD-src-d732ff5ca26d05955ce97f2f7b9f6bb7d117120f.zip
FreeBSD-src-d732ff5ca26d05955ce97f2f7b9f6bb7d117120f.tar.gz
Use implicit type cast for ->k_lock to fix compilation of ndis
as a part of the GENERIC kernel with INVARIANT* and WITNESS* turned off. (For non GENERIC kernel KTR and MUTEX_PROFILING should be also off). Submitted by: Eygene A. Ryabinkin <rea at rea dot mbslab dot kiae dot ru> Approved by: re (scottl) PR: 81767
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/ndis/subr_ntoskrnl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c
index 948f177..6ff0689 100644
--- a/sys/compat/ndis/subr_ntoskrnl.c
+++ b/sys/compat/ndis/subr_ntoskrnl.c
@@ -3110,15 +3110,15 @@ KeRemoveQueueDpc(dpc)
if (dpc->k_lock == NULL)
return(FALSE);
- mtx_lock_spin(dpc->k_lock);
+ mtx_lock_spin((struct mtx*)(dpc->k_lock));
if (dpc->k_dpclistentry.nle_flink == &dpc->k_dpclistentry) {
- mtx_unlock_spin(dpc->k_lock);
+ mtx_unlock_spin((struct mtx*)(dpc->k_lock));
return(FALSE);
}
REMOVE_LIST_ENTRY((&dpc->k_dpclistentry));
INIT_LIST_HEAD((&dpc->k_dpclistentry));
- mtx_unlock_spin(dpc->k_lock);
+ mtx_unlock_spin((struct mtx*)(dpc->k_lock));
return(TRUE);
}
OpenPOWER on IntegriCloud