Module Name:    src
Committed By:   pgoyette
Date:           Mon Jul  4 23:55:54 UTC 2016

Modified Files:
        src/sys/kern: kern_module.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/kern/kern_module.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_module.c
diff -u src/sys/kern/kern_module.c:1.113 src/sys/kern/kern_module.c:1.114
--- src/sys/kern/kern_module.c:1.113	Fri Jun 24 23:04:09 2016
+++ src/sys/kern/kern_module.c	Mon Jul  4 23:55:54 2016
@@ -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 @@ struct modlist        module_builtins = 
 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;

Reply via email to