aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-05-13 20:52:40 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-05-13 20:52:40 +0000
commitab9f3b292eb2d54f225c50d0f430f431483828cc (patch)
tree433d3c12451f2f46221e009722fead1fba5eeb49 /sys/fs/devfs
parentffb82a6f2b474e2629ee32d901b4807970239494 (diff)
Notes
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_devs.c2
-rw-r--r--sys/fs/devfs/devfs_vfsops.c2
-rw-r--r--sys/fs/devfs/devfs_vnops.c9
3 files changed, 8 insertions, 5 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c
index 4dfd0e5c7f492..224ca078a70c7 100644
--- a/sys/fs/devfs/devfs_devs.c
+++ b/sys/fs/devfs/devfs_devs.c
@@ -30,6 +30,7 @@
*/
#include "opt_devfs.h"
+#ifndef NODEVFS
#include <sys/param.h>
#include <sys/systm.h>
@@ -431,3 +432,4 @@ devfs_destroy(dev_t dev)
devfs_create_t *devfs_create_hook = devfs_create;
devfs_destroy_t *devfs_destroy_hook = devfs_destroy;
int devfs_present = 1;
+#endif
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c
index 69ec9b21fbbe3..6ab9cf1755886 100644
--- a/sys/fs/devfs/devfs_vfsops.c
+++ b/sys/fs/devfs/devfs_vfsops.c
@@ -35,6 +35,7 @@
*/
#include "opt_devfs.h"
+#ifndef NODEVFS
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,3 +208,4 @@ static struct vfsops devfs_vfsops = {
};
VFS_SET(devfs_vfsops, devfs, VFCF_SYNTHETIC);
+#endif
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 80dfad8e9d601..fc0e39212f1ea 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -1,4 +1,3 @@
-#define DEBUG 1
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,6 +34,9 @@
* $FreeBSD$
*/
+#include <opt_devfs.h>
+#ifndef NODEVFS
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
@@ -193,10 +195,6 @@ devfs_getattr(ap)
vap->va_nlink = de->de_links;
vap->va_fileid = de->de_inode;
-#ifdef DEBUG
- if (error)
- printf("devfs_getattr: return error %d\n", error);
-#endif
return (error);
}
@@ -711,3 +709,4 @@ static struct vnodeopv_desc devfs_specop_opv_desc =
{ &devfs_specop_p, devfs_specop_entries };
VNODEOP_SET(devfs_specop_opv_desc);
+#endif