Module Name: src Committed By: martin Date: Mon Aug 26 13:15:38 UTC 2019
Modified Files: src/sys/dev/sysmon [netbsd-8]: sysmon.c Log Message: 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) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.28.10.1 src/sys/dev/sysmon/sysmon.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/dev/sysmon/sysmon.c diff -u src/sys/dev/sysmon/sysmon.c:1.28 src/sys/dev/sysmon/sysmon.c:1.28.10.1 --- src/sys/dev/sysmon/sysmon.c:1.28 Tue May 5 09:22:33 2015 +++ src/sys/dev/sysmon/sysmon.c Mon Aug 26 13:15:38 2019 @@ -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 @@ sysmonopen(dev_t dev, int flag, int mode 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);