diff options
author | kib <kib@FreeBSD.org> | 2010-02-27 15:26:36 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-02-27 15:26:36 +0000 |
commit | 695f0b496cd001c4fb2b356b30b3da02d1c9dcfb (patch) | |
tree | c8c9a4ccc2fe47ba5ab8a3a7cf9aa090b4dc0cb3 /sys/kern | |
parent | 9a57b41b18128f9573deabc8b3e925d9ddcda413 (diff) | |
download | FreeBSD-src-695f0b496cd001c4fb2b356b30b3da02d1c9dcfb.zip FreeBSD-src-695f0b496cd001c4fb2b356b30b3da02d1c9dcfb.tar.gz |
Fix several style issues.
Define make_dev_credv() as static to match declaration.
MFC after: 3 days
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_conf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index f4510ac..a2e292e 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -649,7 +649,7 @@ prep_cdevsw(struct cdevsw *devsw) cdevsw_free_devlocked(dsw2); } -struct cdev * +static struct cdev * make_dev_credv(int flags, struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid, gid_t gid, int mode, const char *fmt, va_list ap) @@ -947,7 +947,8 @@ clone_setup(struct clonedevs **cdp) } int -clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, struct cdev **dp, int extra) +clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, + struct cdev **dp, int extra) { struct clonedevs *cd; struct cdev *dev, *ndev, *dl, *de; @@ -1118,6 +1119,7 @@ destroy_dev_sched_cbl(struct cdev *dev, void (*cb)(void *), void *arg) int destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg) { + dev_lock(); return (destroy_dev_sched_cbl(dev, cb, arg)); } @@ -1125,6 +1127,7 @@ destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg) int destroy_dev_sched(struct cdev *dev) { + return (destroy_dev_sched_cb(dev, NULL, NULL)); } |