Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/nvmm nvmm: localify a variable that doesn't need to ...



details:   https://anonhg.NetBSD.org/src/rev/1cf349d5f80a
branches:  trunk
changeset: 937429:1cf349d5f80a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Aug 18 17:03:58 2020 +0000

description:
nvmm: localify a variable that doesn't need to be global

diffstat:

 sys/dev/nvmm/nvmm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 56ff84e0a2b6 -r 1cf349d5f80a sys/dev/nvmm/nvmm.c
--- a/sys/dev/nvmm/nvmm.c       Tue Aug 18 17:03:10 2020 +0000
+++ b/sys/dev/nvmm/nvmm.c       Tue Aug 18 17:03:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvmm.c,v 1.33 2020/08/01 08:18:36 maxv Exp $   */
+/*     $NetBSD: nvmm.c,v 1.34 2020/08/18 17:03:58 maxv Exp $   */
 
 /*
  * Copyright (c) 2018-2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.33 2020/08/01 08:18:36 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.34 2020/08/18 17:03:58 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1040,7 +1040,7 @@
 static int nvmm_mmap(file_t *, off_t *, size_t, int, int *, int *,
     struct uvm_object **, int *);
 
-const struct fileops nvmm_fileops = {
+static const struct fileops nvmm_fileops = {
        .fo_read = fbadop_read,
        .fo_write = fbadop_write,
        .fo_ioctl = nvmm_ioctl,



Home | Main Index | Thread Index | Old Index