Source-Changes-HG archive

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

[src/trunk]: src/sys/compat Finish the previous change - as well as setting t...



details:   https://anonhg.NetBSD.org/src/rev/5849ae384b2b
branches:  trunk
changeset: 828329:5849ae384b2b
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Dec 08 15:31:13 2017 +0000

description:
Finish the previous change - as well as setting the default for these
compat modules back to enabled, stop forcing it to switch back to
disabled any time the module is init'd (which is truly barbaric behaviour.)

diffstat:

 sys/compat/linux/common/linux_mod.c     |  5 ++---
 sys/compat/linux32/common/linux32_mod.c |  5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 8308dd8fb19f -r 5849ae384b2b sys/compat/linux/common/linux_mod.c
--- a/sys/compat/linux/common/linux_mod.c       Fri Dec 08 14:46:18 2017 +0000
+++ b/sys/compat/linux/common/linux_mod.c       Fri Dec 08 15:31:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_mod.c,v 1.8 2017/12/01 22:14:52 joerg Exp $      */
+/*     $NetBSD: linux_mod.c,v 1.9 2017/12/08 15:31:13 kre Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_mod.c,v 1.8 2017/12/01 22:14:52 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_mod.c,v 1.9 2017/12/08 15:31:13 kre Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_execfmt.h"
@@ -158,7 +158,6 @@
 
        switch (cmd) {
        case MODULE_CMD_INIT:
-               linux_enabled = 0;
                linux_futex_init();
                linux_sysctl_init();
                return 0;
diff -r 8308dd8fb19f -r 5849ae384b2b sys/compat/linux32/common/linux32_mod.c
--- a/sys/compat/linux32/common/linux32_mod.c   Fri Dec 08 14:46:18 2017 +0000
+++ b/sys/compat/linux32/common/linux32_mod.c   Fri Dec 08 15:31:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux32_mod.c,v 1.9 2017/12/01 22:14:52 joerg Exp $    */
+/*     $NetBSD: linux32_mod.c,v 1.10 2017/12/08 15:31:13 kre Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_mod.c,v 1.9 2017/12/01 22:14:52 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_mod.c,v 1.10 2017/12/08 15:31:13 kre Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_execfmt.h"
@@ -117,7 +117,6 @@
 
        switch (cmd) {
        case MODULE_CMD_INIT:
-               linux32_enabled = 0;
                linux32_sysctl_init();
                return 0;
 



Home | Main Index | Thread Index | Old Index