Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/sysmon Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/cc68e5fe7af3
branches:  netbsd-9
changeset: 962877:cc68e5fe7af3
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 26 14:13:42 2019 +0000

description:
Pull up following revision(s) (requested by nakayama in ticket #118):

        sys/dev/sysmon/sysmon.c: revision 1.30

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 650e3316e351 -r cc68e5fe7af3 sys/dev/sysmon/sysmon.c
--- a/sys/dev/sysmon/sysmon.c   Mon Aug 26 14:11:04 2019 +0000
+++ b/sys/dev/sysmon/sysmon.c   Mon Aug 26 14:13:42 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.29.2.1 2019/08/26 14:13:42 martin 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.29.2.1 2019/08/26 14:13:42 martin 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