Source-Changes-HG archive

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

[src/trunk]: src/sys miscfs/specfs/specdev.h: New home for extern spec_vnodeo...



details:   https://anonhg.NetBSD.org/src/rev/984a6c3739b5
branches:  trunk
changeset: 372079:984a6c3739b5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:40:08 2022 +0000

description:
miscfs/specfs/specdev.h: New home for extern spec_vnodeop_opv_desc.

Also use it for extern spec_vnodeop_p, which is already there.

diffstat:

 sys/kern/vfs_init.c         |  6 +++---
 sys/kern/vfs_vnode.c        |  6 +++---
 sys/miscfs/specfs/specdev.h |  5 +++--
 3 files changed, 9 insertions(+), 8 deletions(-)

diffs (94 lines):

diff -r f075c2c8dc86 -r 984a6c3739b5 sys/kern/vfs_init.c
--- a/sys/kern/vfs_init.c       Wed Oct 26 23:39:43 2022 +0000
+++ b/sys/kern/vfs_init.c       Wed Oct 26 23:40:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_init.c,v 1.56 2022/10/26 23:39:43 riastradh Exp $  */
+/*     $NetBSD: vfs_init.c,v 1.57 2022/10/26 23:40:08 riastradh Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.56 2022/10/26 23:39:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.57 2022/10/26 23:40:08 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -86,6 +86,7 @@
 #include <sys/kauth.h>
 
 #include <miscfs/deadfs/deadfs.h>
+#include <miscfs/specfs/specdev.h>
 
 /*
  * Sigh, such primitive tools are these...
@@ -109,7 +110,6 @@
  * be initialized by vfs_attach().
  */
 extern const struct vnodeopv_desc fifo_vnodeop_opv_desc;
-extern const struct vnodeopv_desc spec_vnodeop_opv_desc;
 
 const struct vnodeopv_desc * const vfs_special_vnodeopv_descs[] = {
        &dead_vnodeop_opv_desc,
diff -r f075c2c8dc86 -r 984a6c3739b5 sys/kern/vfs_vnode.c
--- a/sys/kern/vfs_vnode.c      Wed Oct 26 23:39:43 2022 +0000
+++ b/sys/kern/vfs_vnode.c      Wed Oct 26 23:40:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_vnode.c,v 1.146 2022/10/26 23:39:43 riastradh Exp $        */
+/*     $NetBSD: vfs_vnode.c,v 1.147 2022/10/26 23:40:08 riastradh Exp $        */
 
 /*-
  * Copyright (c) 1997-2011, 2019, 2020 The NetBSD Foundation, Inc.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.146 2022/10/26 23:39:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.147 2022/10/26 23:40:08 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pax.h"
@@ -177,6 +177,7 @@
 #include <sys/fstrans.h>
 
 #include <miscfs/deadfs/deadfs.h>
+#include <miscfs/specfs/specdev.h>
 
 #include <uvm/uvm.h>
 #include <uvm/uvm_readahead.h>
@@ -226,7 +227,6 @@
     __printflike(2, 3);
 
 /* Routines having to do with the management of the vnode table. */
-extern int             (**spec_vnodeop_p)(void *);
 
 /*
  * The high bit of v_usecount is a gate for vcache_tryvget().  It's set
diff -r f075c2c8dc86 -r 984a6c3739b5 sys/miscfs/specfs/specdev.h
--- a/sys/miscfs/specfs/specdev.h       Wed Oct 26 23:39:43 2022 +0000
+++ b/sys/miscfs/specfs/specdev.h       Wed Oct 26 23:40:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specdev.h,v 1.52 2022/03/28 12:38:04 riastradh Exp $   */
+/*     $NetBSD: specdev.h,v 1.53 2022/10/26 23:40:08 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -104,6 +104,7 @@
 /*
  * Prototypes for special file operations on vnodes.
  */
+extern const struct vnodeopv_desc spec_vnodeop_opv_desc;
 extern int (**spec_vnodeop_p)(void *);
 struct nameidata;
 struct componentname;
@@ -175,7 +176,7 @@
  * spec_foo. For fsync it varies, but should always also call spec_fsync.
  *
  * Note that because the op descriptor tables are unordered it does not
- * matter where in the table this macro goes (except I think default 
+ * matter where in the table this macro goes (except I think default
  * still needs to be first...)
  */
 #define GENFS_SPECOP_ENTRIES \



Home | Main Index | Thread Index | Old Index