summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-26 13:30:55 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-26 13:30:55 +0000
commitf46490e5c95e499bc6d17a0429ce405fcfc32410 (patch)
tree9d5a1c099915bc0f6b61e7e0608c7cad1469b298 /sys
parent63be33c9a551c533eb1c57e2987094e1f4ed6e53 (diff)
Move extern declarations of vfsops variables into header file.
OK visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_init.c43
-rw-r--r--sys/sys/mount.h13
2 files changed, 13 insertions, 43 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index adf1116645d..84c00f0e444 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_init.c,v 1.42 2019/04/02 13:07:28 visa Exp $ */
+/* $OpenBSD: vfs_init.c,v 1.43 2019/12/26 13:30:54 bluhm Exp $ */
/* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */
/*
@@ -50,47 +50,6 @@ struct pool namei_pool;
struct vnode *rootvnode;
/* Set up the filesystem operations for vnodes. */
-#ifdef FFS
-extern const struct vfsops ffs_vfsops;
-#endif
-
-#ifdef MFS
-extern const struct vfsops mfs_vfsops;
-#endif
-
-#ifdef MSDOSFS
-extern const struct vfsops msdosfs_vfsops;
-#endif
-
-#ifdef NFSCLIENT
-extern const struct vfsops nfs_vfsops;
-#endif
-
-#ifdef CD9660
-extern const struct vfsops cd9660_vfsops;
-#endif
-
-#ifdef EXT2FS
-extern const struct vfsops ext2fs_vfsops;
-#endif
-
-#ifdef NTFS
-extern const struct vfsops ntfs_vfsops;
-#endif
-
-#ifdef UDF
-extern const struct vfsops udf_vfsops;
-#endif
-
-#ifdef FUSE
-extern const struct vfsops fusefs_vfsops;
-#endif
-
-#ifdef TMPFS
-extern const struct vfsops tmpfs_vfsops;
-#endif
-
-/* Set up the filesystem operations for vnodes. */
static struct vfsconf vfsconflist[] = {
#ifdef FFS
{ &ffs_vfsops, MOUNT_FFS, 1, 0, MNT_LOCAL | MNT_SWAPPABLE,
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 6f1004324a3..c6c140349ad 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.h,v 1.144 2019/04/02 13:07:28 visa Exp $ */
+/* $OpenBSD: mount.h,v 1.145 2019/12/26 13:30:54 bluhm Exp $ */
/* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */
/*
@@ -543,6 +543,17 @@ struct vfsops {
#define VFS_CHECKEXP(MP, NAM, EXFLG, CRED) \
(*(MP)->mnt_op->vfs_checkexp)(MP, NAM, EXFLG, CRED)
+/* Set up the filesystem operations for vnodes. */
+extern const struct vfsops ffs_vfsops;
+extern const struct vfsops mfs_vfsops;
+extern const struct vfsops msdosfs_vfsops;
+extern const struct vfsops nfs_vfsops;
+extern const struct vfsops cd9660_vfsops;
+extern const struct vfsops ext2fs_vfsops;
+extern const struct vfsops ntfs_vfsops;
+extern const struct vfsops udf_vfsops;
+extern const struct vfsops fusefs_vfsops;
+extern const struct vfsops tmpfs_vfsops;
#include <net/radix.h>
#include <sys/socket.h> /* XXX for AF_MAX */