Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Fixed WSCONS kernels. The cnprobe functio...



details:   https://anonhg.NetBSD.org/src/rev/575dcfba1e28
branches:  trunk
changeset: 818678:575dcfba1e28
user:      phx <phx%NetBSD.org@localhost>
date:      Sun Oct 23 18:40:52 2016 +0000

description:
Fixed WSCONS kernels. The cnprobe function must only be called when
MNTVA_CONSOLE is defined.

diffstat:

 sys/arch/amiga/dev/mntva.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r f7900e5d7f34 -r 575dcfba1e28 sys/arch/amiga/dev/mntva.c
--- a/sys/arch/amiga/dev/mntva.c        Sun Oct 23 12:46:57 2016 +0000
+++ b/sys/arch/amiga/dev/mntva.c        Sun Oct 23 18:40:52 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mntva.c,v 1.1 2016/10/03 14:26:02 rkujawa Exp $        */
+/*     $NetBSD: mntva.c,v 1.2 2016/10/23 18:40:52 phx Exp $    */
 
 /*
  * Copyright (c) 2012, 2016 The NetBSD Foundation, Inc.                
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mntva.c,v 1.1 2016/10/03 14:26:02 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mntva.c,v 1.2 2016/10/23 18:40:52 phx Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -593,6 +593,7 @@
 void 
 mntvacnprobe(struct consdev *cd)
 {
+#ifdef MNTVA_CONSOLE
        /* 
         * This isn't exactly true, but cons.h does not define anything
         * that would fit our case exactly.
@@ -600,6 +601,7 @@
        cd->cn_pri = CN_INTERNAL;
 
        cd->cn_dev = NODEV; /* Filled later by wscons. */
+#endif /* MNTVA_CONSOLE */
 }
 
 /* ARGSUSED */



Home | Main Index | Thread Index | Old Index