Source-Changes-HG archive

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

[src/trunk]: src/sys Declare mountcompatnames in sys/vfs_syscalls.h to kill n...



details:   https://anonhg.NetBSD.org/src/rev/1d0f2ab55bfa
branches:  trunk
changeset: 825742:1d0f2ab55bfa
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 29 04:02:49 2017 +0000

description:
Declare mountcompatnames in sys/vfs_syscalls.h to kill nested extern.

diffstat:

 sys/compat/common/vfs_syscalls_43.c |  7 ++-----
 sys/sys/vfs_syscalls.h              |  5 ++++-
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 4ce915f96323 -r 1d0f2ab55bfa sys/compat/common/vfs_syscalls_43.c
--- a/sys/compat/common/vfs_syscalls_43.c       Sat Jul 29 03:32:00 2017 +0000
+++ b/sys/compat/common/vfs_syscalls_43.c       Sat Jul 29 04:02:49 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls_43.c,v 1.60 2017/07/28 15:34:06 riastradh Exp $   */
+/*     $NetBSD: vfs_syscalls_43.c,v 1.61 2017/07/29 04:02:49 riastradh Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.60 2017/07/28 15:34:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.61 2017/07/29 04:02:49 riastradh Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -524,8 +524,6 @@
 sysctl_vfs_generic_conf(SYSCTLFN_ARGS)
 {
         struct vfsconf vfc;
-        extern const char * const mountcompatnames[];
-        extern int nmountcompatnames;
        struct sysctlnode node;
        struct vfsops *vfsp;
        u_int vfsnum;
@@ -560,7 +558,6 @@
 void
 compat_sysctl_vfs(struct sysctllog **clog)
 {
-       extern int nmountcompatnames;
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
diff -r 4ce915f96323 -r 1d0f2ab55bfa sys/sys/vfs_syscalls.h
--- a/sys/sys/vfs_syscalls.h    Sat Jul 29 03:32:00 2017 +0000
+++ b/sys/sys/vfs_syscalls.h    Sat Jul 29 04:02:49 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.h,v 1.22 2014/01/25 02:28:31 christos Exp $        */
+/*     $NetBSD: vfs_syscalls.h,v 1.23 2017/07/29 04:02:49 riastradh Exp $        */
 
 /*
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -83,4 +83,7 @@
 int    chdir_lookup(const char *, int, struct vnode **, struct lwp *);
 void   change_root(struct cwdinfo *, struct vnode *, struct lwp *);
 
+extern const char *const mountcompatnames[];
+extern const int nmountcompatnames;
+
 #endif /* _SYS_VFS_SYSCALLS_H_ */



Home | Main Index | Thread Index | Old Index