Module Name: src Committed By: riastradh Date: Sat Jul 29 04:02:49 UTC 2017
Modified Files: src/sys/compat/common: vfs_syscalls_43.c src/sys/sys: vfs_syscalls.h Log Message: Declare mountcompatnames in sys/vfs_syscalls.h to kill nested extern. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/compat/common/vfs_syscalls_43.c cvs rdiff -u -r1.22 -r1.23 src/sys/sys/vfs_syscalls.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/common/vfs_syscalls_43.c diff -u src/sys/compat/common/vfs_syscalls_43.c:1.60 src/sys/compat/common/vfs_syscalls_43.c:1.61 --- src/sys/compat/common/vfs_syscalls_43.c:1.60 Fri Jul 28 15:34:06 2017 +++ src/sys/compat/common/vfs_syscalls_43.c Sat Jul 29 04:02:49 2017 @@ -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 @@ static int 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 @@ sysctl_vfs_generic_conf(SYSCTLFN_ARGS) void compat_sysctl_vfs(struct sysctllog **clog) { - extern int nmountcompatnames; sysctl_createv(clog, 0, NULL, NULL, CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE, Index: src/sys/sys/vfs_syscalls.h diff -u src/sys/sys/vfs_syscalls.h:1.22 src/sys/sys/vfs_syscalls.h:1.23 --- src/sys/sys/vfs_syscalls.h:1.22 Sat Jan 25 02:28:31 2014 +++ src/sys/sys/vfs_syscalls.h Sat Jul 29 04:02:49 2017 @@ -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 @@ void do_sys_sync(struct lwp *); 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_ */