Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src use MODULE_CLASS_MISC for Lua modules
details: https://anonhg.NetBSD.org/src/rev/25386ff93b58
branches: trunk
changeset: 790825:25386ff93b58
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Wed Oct 23 18:57:40 2013 +0000
description:
use MODULE_CLASS_MISC for Lua modules
diffstat:
sbin/modstat/main.c | 7 +++----
sys/modules/lua/lua.c | 4 ++--
sys/modules/luacore/luacore.c | 4 ++--
sys/sys/module.h | 5 ++---
4 files changed, 9 insertions(+), 11 deletions(-)
diffs (83 lines):
diff -r 6d732e450cac -r 25386ff93b58 sbin/modstat/main.c
--- a/sbin/modstat/main.c Wed Oct 23 17:22:49 2013 +0000
+++ b/sbin/modstat/main.c Wed Oct 23 18:57:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.17 2013/10/21 17:14:06 mbalmer Exp $ */
+/* $NetBSD: main.c,v 1.18 2013/10/23 18:57:40 mbalmer Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.17 2013/10/21 17:14:06 mbalmer Exp $");
+__RCSID("$NetBSD: main.c,v 1.18 2013/10/23 18:57:40 mbalmer Exp $");
#endif /* !lint */
#include <sys/module.h>
@@ -54,8 +54,7 @@
"vfs",
"driver",
"exec",
- "secmodel",
- "lua"
+ "secmodel"
};
const unsigned int class_max = __arraycount(classes);
diff -r 6d732e450cac -r 25386ff93b58 sys/modules/lua/lua.c
--- a/sys/modules/lua/lua.c Wed Oct 23 17:22:49 2013 +0000
+++ b/sys/modules/lua/lua.c Wed Oct 23 18:57:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lua.c,v 1.2 2013/10/18 07:49:06 mbalmer Exp $ */
+/* $NetBSD: lua.c,v 1.3 2013/10/23 18:57:40 mbalmer Exp $ */
/*
* Copyright (c) 2011, 2013 by Marc Balmer <mbalmer%NetBSD.org@localhost>.
@@ -478,7 +478,7 @@
snprintf(name, sizeof name, "lua%s", module);
if (lua_verbose)
device_printf(sc_self, "autoload %s\n", name);
- module_autoload(name, MODULE_CLASS_LUA_BINDING);
+ module_autoload(name, MODULE_CLASS_MISC);
LIST_FOREACH(m, &lua_modules, mod_next)
if (!strcmp(m->mod_name, module)) {
md = m;
diff -r 6d732e450cac -r 25386ff93b58 sys/modules/luacore/luacore.c
--- a/sys/modules/luacore/luacore.c Wed Oct 23 17:22:49 2013 +0000
+++ b/sys/modules/luacore/luacore.c Wed Oct 23 18:57:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: luacore.c,v 1.3 2013/10/18 07:46:55 mbalmer Exp $ */
+/* $NetBSD: luacore.c,v 1.4 2013/10/23 18:57:40 mbalmer Exp $ */
/*
* Copyright (c) 2011, 2013 Marc Balmer <mbalmer%NetBSD.org@localhost>.
@@ -41,7 +41,7 @@
#include <lua.h>
#ifdef _MODULE
-MODULE(MODULE_CLASS_LUA_BINDING, luacore, "lua");
+MODULE(MODULE_CLASS_MISC, luacore, "lua");
/* Various printing functions */
static int
diff -r 6d732e450cac -r 25386ff93b58 sys/sys/module.h
--- a/sys/sys/module.h Wed Oct 23 17:22:49 2013 +0000
+++ b/sys/sys/module.h Wed Oct 23 18:57:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: module.h,v 1.33 2013/10/21 16:15:44 mbalmer Exp $ */
+/* $NetBSD: module.h,v 1.34 2013/10/23 18:57:40 mbalmer Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -45,8 +45,7 @@
MODULE_CLASS_VFS,
MODULE_CLASS_DRIVER,
MODULE_CLASS_EXEC,
- MODULE_CLASS_SECMODEL,
- MODULE_CLASS_LUA_BINDING
+ MODULE_CLASS_SECMODEL
} modclass_t;
/* Module sources: where did it come from? */
Home |
Main Index |
Thread Index |
Old Index