Source-Changes-HG archive

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

[src/trunk]: src/sys constify wapbl_ops



details:   https://anonhg.NetBSD.org/src/rev/ca5c59851cf4
branches:  trunk
changeset: 837561:ca5c59851cf4
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Dec 10 21:19:33 2018 +0000

description:
constify wapbl_ops

diffstat:

 sys/kern/vfs_wapbl.c |  6 +++---
 sys/sys/mount.h      |  4 ++--
 sys/sys/wapbl.h      |  4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 9709a9c5b5fb -r ca5c59851cf4 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c      Mon Dec 10 21:10:52 2018 +0000
+++ b/sys/kern/vfs_wapbl.c      Mon Dec 10 21:19:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_wapbl.c,v 1.102 2018/12/10 21:03:48 jdolecek Exp $ */
+/*     $NetBSD: vfs_wapbl.c,v 1.103 2018/12/10 21:19:33 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.102 2018/12/10 21:03:48 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.103 2018/12/10 21:19:33 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -301,7 +301,7 @@
 
 static int wapbl_replay_isopen1(struct wapbl_replay *);
 
-struct wapbl_ops wapbl_ops = {
+const struct wapbl_ops wapbl_ops = {
        .wo_wapbl_discard       = wapbl_discard,
        .wo_wapbl_replay_isopen = wapbl_replay_isopen1,
        .wo_wapbl_replay_can_read = wapbl_replay_can_read,
diff -r 9709a9c5b5fb -r ca5c59851cf4 sys/sys/mount.h
--- a/sys/sys/mount.h   Mon Dec 10 21:10:52 2018 +0000
+++ b/sys/sys/mount.h   Mon Dec 10 21:19:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.h,v 1.232 2018/12/10 21:03:48 jdolecek Exp $     */
+/*     $NetBSD: mount.h,v 1.233 2018/12/10 21:19:33 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -150,7 +150,7 @@
        specificdata_reference
                        mnt_specdataref;        /* subsystem specific data */
        kmutex_t        mnt_updating;           /* to serialize updates */
-       struct wapbl_ops
+       const struct wapbl_ops
                        *mnt_wapbl_op;          /* logging ops */
        struct wapbl    *mnt_wapbl;             /* log info */
        struct wapbl_replay
diff -r 9709a9c5b5fb -r ca5c59851cf4 sys/sys/wapbl.h
--- a/sys/sys/wapbl.h   Mon Dec 10 21:10:52 2018 +0000
+++ b/sys/sys/wapbl.h   Mon Dec 10 21:19:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wapbl.h,v 1.20 2016/11/10 20:56:32 jdolecek Exp $      */
+/*     $NetBSD: wapbl.h,v 1.21 2018/12/10 21:19:33 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 2003,2008 The NetBSD Foundation, Inc.
@@ -189,7 +189,7 @@
 
 void   wapbl_biodone(struct buf *);
 
-extern struct wapbl_ops wapbl_ops;
+extern const struct wapbl_ops wapbl_ops;
 
 static __inline struct mount *
 wapbl_vptomp(struct vnode *vp)



Home | Main Index | Thread Index | Old Index