From 7649bbb0b0818f84ed89a6b4945132a5e9ebcf54 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 15 Mar 2005 12:39:30 +0000 Subject: [PATCH] Disable two users of findcdev. They do the wrong thing now and will need to be fixed. In both cases the API should be reengineered to do something (more) sensible. --- sys/coda/coda_venus.c | 4 ++++ sys/dev/snp/snp.c | 4 ++++ sys/fs/coda/coda_venus.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/sys/coda/coda_venus.c b/sys/coda/coda_venus.c index 5982367625e4..56d627b39292 100644 --- a/sys/coda/coda_venus.c +++ b/sys/coda/coda_venus.c @@ -200,6 +200,7 @@ venus_open(void *mdp, CodaFid *fid, int flag, struct ucred *cred, struct proc *p, /*out*/ struct cdev **dev, ino_t *inode) { +#if 0 int cflag; DECL(coda_open); /* sets Isize & Osize */ ALLOC(coda_open); /* sets inp & outp */ @@ -218,6 +219,9 @@ venus_open(void *mdp, CodaFid *fid, int flag, CODA_FREE(inp, coda_open_size); return error; +#else + return (EOPNOTSUPP); +#endif } int diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 643c6e7ba2cb..bd4bcac7375c 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -523,7 +523,11 @@ snpioctl(dev, cmd, data, flags, td) snp = dev->si_drv1; switch (cmd) { case SNPSTTY: +#if 0 tdev = findcdev(*((dev_t *)data)); +#else + tdev = NULL; +#endif if (tdev == NULL) return (snp_down(snp)); diff --git a/sys/fs/coda/coda_venus.c b/sys/fs/coda/coda_venus.c index 5982367625e4..56d627b39292 100644 --- a/sys/fs/coda/coda_venus.c +++ b/sys/fs/coda/coda_venus.c @@ -200,6 +200,7 @@ venus_open(void *mdp, CodaFid *fid, int flag, struct ucred *cred, struct proc *p, /*out*/ struct cdev **dev, ino_t *inode) { +#if 0 int cflag; DECL(coda_open); /* sets Isize & Osize */ ALLOC(coda_open); /* sets inp & outp */ @@ -218,6 +219,9 @@ venus_open(void *mdp, CodaFid *fid, int flag, CODA_FREE(inp, coda_open_size); return error; +#else + return (EOPNOTSUPP); +#endif } int