Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/autofs autofs: Make /dev/autofs cdevsw functions static



details:   https://anonhg.NetBSD.org/src/rev/14c3cdbd1c24
branches:  trunk
changeset: 967547:14c3cdbd1c24
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Sat Dec 14 12:01:13 2019 +0000

description:
autofs: Make /dev/autofs cdevsw functions static

Also less confusing since autofs vnops also has autofs_{open,close} in NetBSD.

diffstat:

 sys/fs/autofs/autofs.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r ff24fe6690dc -r 14c3cdbd1c24 sys/fs/autofs/autofs.c
--- a/sys/fs/autofs/autofs.c    Sat Dec 14 12:00:40 2019 +0000
+++ b/sys/fs/autofs/autofs.c    Sat Dec 14 12:01:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autofs.c,v 1.3 2018/01/09 16:19:39 christos Exp $      */
+/*     $NetBSD: autofs.c,v 1.4 2019/12/14 12:01:13 tkusumi Exp $       */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autofs.c,v 1.3 2018/01/09 16:19:39 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autofs.c,v 1.4 2019/12/14 12:01:13 tkusumi Exp $");
 
 #include "autofs.h"
 
@@ -78,9 +78,9 @@
 #include <sys/queue.h>
 #include <sys/signalvar.h>
 
-dev_type_open(autofs_open);
-dev_type_close(autofs_close);
-dev_type_ioctl(autofs_ioctl);
+static dev_type_open(autofs_open);
+static dev_type_close(autofs_close);
+static dev_type_ioctl(autofs_ioctl);
 
 const struct cdevsw autofs_cdevsw = {
        .d_open = autofs_open,
@@ -519,7 +519,7 @@
        return 0;
 }
 
-int
+static int
 autofs_open(dev_t dev, int flags, int mode, struct lwp *l)
 {
 
@@ -543,7 +543,7 @@
        return 0;
 }
 
-int
+static int
 autofs_close(dev_t dev, int flags, int mode, struct lwp *l)
 {
 
@@ -555,7 +555,7 @@
        return 0;
 }
 
-int
+static int
 autofs_ioctl(dev_t dev, const u_long cmd, void *data, int flag, struct lwp *l)
 {
 



Home | Main Index | Thread Index | Old Index