summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-09-23 00:00:50 +0000
committerjasone <jasone@FreeBSD.org>2000-09-23 00:00:50 +0000
commit27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6 (patch)
tree7efba58b1d00453ffde400a784d7dea8033199c4 /sys/amd64/include
parent38c8bc22f0a9cc3143dc1932f04d40c4476d3fee (diff)
downloadFreeBSD-src-27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6.zip
FreeBSD-src-27bf3e86c9ec30934993eeb4a37bcbbd8154f0d6.tar.gz
#include <sys/proc.h> in order to get curproc. This seems to be the lesser
of two evils; the greater evil is requiring sys/proc.h to be included before including machine/mutex.h.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/mutex.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index a2285cd..ab8a953 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -35,6 +35,7 @@
#ifndef LOCORE
#include <sys/ktr.h>
+#include <sys/proc.h> /* Needed for curproc. */
#include <sys/queue.h>
#include <machine/atomic.h>
#include <machine/cpufunc.h>
@@ -75,8 +76,6 @@
#define MTX_FLAGMASK ~(MTX_RECURSE | MTX_CONTESTED)
#define MTX_UNOWNED 0x8 /* Cookie for free mutex */
-struct proc; /* XXX */
-
/*
* Sleep/spin mutex
*/
@@ -569,7 +568,7 @@ void witness_restore(struct mtx *, const char *, int);
/*
* KTR_EXTEND saves file name and line for all entries, so we don't need them
* here. Theoretically we should also change the entries which refer to them
- * (from CTR5 to CTR3), but since they're just passed to snprinf as the last
+ * (from CTR5 to CTR3), but since they're just passed to snprintf as the last
* parameters, it doesn't do any harm to leave them.
*/
char STR_mtx_enter_fmt[] = "GOT %s [%x] r=%d";
OpenPOWER on IntegriCloud