diff options
author | phk <phk@FreeBSD.org> | 2003-01-19 11:26:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-19 11:26:13 +0000 |
commit | 124e4a4ca38e7ea426abd1799796593a39eebeba (patch) | |
tree | 33bca1e76fbef1479152f53b61760af4d5751da6 | |
parent | 24596ddb76743273c5d39821727e4e00d025cb02 (diff) | |
download | FreeBSD-src-124e4a4ca38e7ea426abd1799796593a39eebeba.zip FreeBSD-src-124e4a4ca38e7ea426abd1799796593a39eebeba.tar.gz |
Mark more code #ifdef NODEVFS
-rw-r--r-- | sys/kern/kern_conf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 0a98a34..a38928e 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -40,8 +40,10 @@ #include <sys/ctype.h> #include <machine/stdarg.h> +#ifdef NODEVFS static struct cdevsw *cdevsw[NUMCDEVSW]; +#endif static MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage"); /* @@ -94,7 +96,7 @@ devsw(dev_t dev) int cdevsw_add(struct cdevsw *newentry) { - +#ifdef NODEVFS if (newentry->d_maj < 0 || newentry->d_maj >= NUMCDEVSW) { printf("%s: ERROR: driver has bogus cdevsw->d_maj = %d\n", newentry->d_name, newentry->d_maj); @@ -107,6 +109,7 @@ cdevsw_add(struct cdevsw *newentry) } cdevsw[newentry->d_maj] = newentry; +#endif return (0); } @@ -118,6 +121,7 @@ cdevsw_add(struct cdevsw *newentry) int cdevsw_remove(struct cdevsw *oldentry) { +#ifdef NODEVFS if (oldentry->d_maj < 0 || oldentry->d_maj >= NUMCDEVSW) { printf("%s: ERROR: driver has bogus cdevsw->d_maj = %d\n", oldentry->d_name, oldentry->d_maj); @@ -125,6 +129,7 @@ cdevsw_remove(struct cdevsw *oldentry) } cdevsw[oldentry->d_maj] = NULL; +#endif return 0; } |