summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs/devfs_tree.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commit36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 (patch)
treee21c1d8330cbd5fba838afec549f8e4f0f66e451 /sys/miscfs/devfs/devfs_tree.c
parent8ae70d2227594ff4a283453ca3cc3031eb78c14b (diff)
downloadFreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.zip
FreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.tar.gz
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Diffstat (limited to 'sys/miscfs/devfs/devfs_tree.c')
-rw-r--r--sys/miscfs/devfs/devfs_tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c
index b37b65e..be1deab 100644
--- a/sys/miscfs/devfs/devfs_tree.c
+++ b/sys/miscfs/devfs/devfs_tree.c
@@ -2,7 +2,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.42 1997/10/10 07:54:05 julian Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.43 1997/10/11 18:31:28 phk Exp $
*/
#include "opt_devfs.h"
@@ -11,11 +11,11 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/conf.h>
+#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/proc.h>
#include <sys/time.h>
#include <sys/vnode.h>
-#include <sys/malloc.h>
#include <sys/devfsext.h>
#include <machine/stdarg.h>
@@ -23,8 +23,8 @@
#include <miscfs/devfs/devfsdefs.h>
-MALLOC_DEFINE(M_DEVFSNODE, "DEVFS node", "DEVFS node");
-MALLOC_DEFINE(M_DEVFSNAME, "DEVFS name", "DEVFS name");
+static MALLOC_DEFINE(M_DEVFSNODE, "DEVFS node", "DEVFS node");
+static MALLOC_DEFINE(M_DEVFSNAME, "DEVFS name", "DEVFS name");
devnm_p dev_root; /* root of the backing tree */
struct mount *devfs_hidden_mount;
OpenPOWER on IntegriCloud