Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Module class of sysmon_envsys, sysmon_wdog an...
details: https://anonhg.NetBSD.org/src/rev/51f944b875ae
branches: trunk
changeset: 964998:51f944b875ae
user: nakayama <nakayama%NetBSD.org@localhost>
date: Mon Aug 26 10:05:34 2019 +0000
description:
Module class of sysmon_envsys, sysmon_wdog and sysmon_power is
MODULE_CLASS_DRIVER, not MODULE_CLASS_MISC.
Fix that invoking envsys without sysmon_envsys kernel module failes with:
WARNING: module error: incompatible module class for `sysmon_envsys' (1 != 3)
diffstat:
sys/dev/sysmon/sysmon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2d376d3b1b34 -r 51f944b875ae sys/dev/sysmon/sysmon.c
--- a/sys/dev/sysmon/sysmon.c Mon Aug 26 07:41:50 2019 +0000
+++ b/sys/dev/sysmon/sysmon.c Mon Aug 26 10:05:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $ */
+/* $NetBSD: sysmon.c,v 1.30 2019/08/26 10:05:34 nakayama Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.30 2019/08/26 10:05:34 nakayama Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -151,7 +151,7 @@
if (sysmon_opvec_table[minor(dev)] == NULL) {
mutex_exit(&sysmon_minor_mtx);
error = module_autoload(sysmon_mod[minor(dev)],
- MODULE_CLASS_MISC);
+ MODULE_CLASS_DRIVER);
if (error)
return error;
mutex_enter(&sysmon_minor_mtx);
Home |
Main Index |
Thread Index |
Old Index