summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-10 12:19:16 +0000
committerbde <bde@FreeBSD.org>2002-09-10 12:19:16 +0000
commit76b3173c28cba290efa0dc76399fc0c456f4d339 (patch)
treee0b4bcc9723c0d116f78e088ace5119e99dd4f84
parenta31246083854c68b3a59d1cb9909b800297f0247 (diff)
downloadFreeBSD-src-76b3173c28cba290efa0dc76399fc0c456f4d339.zip
FreeBSD-src-76b3173c28cba290efa0dc76399fc0c456f4d339.tar.gz
Fixed namespace pollution in uma changes:
- use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't a prerequisite. - don't include <sys/uma.h>. Namespace pollution makes "opaque" types like uma_zone_t perfectly non-opaque. Such types should never be used (see style(9)).
-rw-r--r--sys/sys/proc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 9673b25..d5741ec 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -57,7 +57,6 @@
#endif
#include <sys/ucred.h>
#include <machine/proc.h> /* Machine-dependent proc substruct. */
-#include <vm/uma.h>
/*
* One structure allocated per session.
@@ -773,7 +772,7 @@ extern struct proclist zombproc; /* List of zombie processes. */
extern struct proc *initproc, *pageproc; /* Process slots for init, pager. */
extern struct proc *updateproc; /* Process slot for syncer (sic). */
-extern uma_zone_t proc_zone;
+extern struct uma_zone *proc_zone;
extern int lastpid;
OpenPOWER on IntegriCloud