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/ebf4ad5c3b90
branches:  trunk
changeset: 942758:ebf4ad5c3b90
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 1922b03bf148 -r ebf4ad5c3b90 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