Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Don't declare module_verbose_on or module_autoload_...
details: https://anonhg.NetBSD.org/src/rev/a119bdc37af1
branches: trunk
changeset: 346283:a119bdc37af1
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jul 04 23:55:54 2016 +0000
description:
Don't declare module_verbose_on or module_autoload_on static. It is useful
for these variables to be global, so they can be modified by ddb(4)
(entered via "boot -d") early in startup.
diffstat:
sys/kern/kern_module.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 87762a1c8734 -r a119bdc37af1 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Mon Jul 04 20:24:24 2016 +0000
+++ b/sys/kern/kern_module.c Mon Jul 04 23:55:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.113 2016/06/24 23:04:09 pgoyette Exp $ */
+/* $NetBSD: kern_module.c,v 1.114 2016/07/04 23:55:54 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.113 2016/06/24 23:04:09 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.114 2016/07/04 23:55:54 pgoyette Exp $");
#define _MODULE_INTERNAL
@@ -66,11 +66,11 @@
static struct modlist module_bootlist = TAILQ_HEAD_INITIALIZER(module_bootlist);
static module_t *module_active;
-static bool module_verbose_on;
+bool module_verbose_on;
#ifdef MODULAR_DEFAULT_AUTOLOAD
-static bool module_autoload_on = true;
+bool module_autoload_on = true;
#else
-static bool module_autoload_on = false;
+bool module_autoload_on = false;
#endif
u_int module_count;
u_int module_builtinlist;
Home |
Main Index |
Thread Index |
Old Index