Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/4c8ed99e1a9f
branches:  netbsd-8
changeset: 453804:4c8ed99e1a9f
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 26 13:15:38 2019 +0000

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

        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 65a1562b307d -r 4c8ed99e1a9f sys/dev/sysmon/sysmon.c
--- a/sys/dev/sysmon/sysmon.c   Wed Aug 21 14:33:26 2019 +0000
+++ b/sys/dev/sysmon/sysmon.c   Mon Aug 26 13:15:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $     */
+/*     $NetBSD: sysmon.c,v 1.28.10.1 2019/08/26 13:15:38 martin Exp $  */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.28.10.1 2019/08/26 13:15:38 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