Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix build when GENFB is not there.



details:   https://anonhg.NetBSD.org/src/rev/e99d8f38e76b
branches:  trunk
changeset: 761861:e99d8f38e76b
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Feb 09 15:02:00 2011 +0000

description:
Fix build when GENFB is not there.

diffstat:

 sys/arch/x86/x86/x86_autoconf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 051a5a3adf85 -r e99d8f38e76b sys/arch/x86/x86/x86_autoconf.c
--- a/sys/arch/x86/x86/x86_autoconf.c   Wed Feb 09 14:37:55 2011 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c   Wed Feb 09 15:02:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_autoconf.c,v 1.55 2011/02/09 13:24:24 jmcneill Exp $       */
+/*     $NetBSD: x86_autoconf.c,v 1.56 2011/02/09 15:02:00 bouyer Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.55 2011/02/09 13:24:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.56 2011/02/09 15:02:00 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -110,9 +110,11 @@
 static bool
 x86_genfb_setmode(struct genfb_softc *sc, int newmode)
 {
+#if NGENFB > 0
        if (newmode == WSDISPLAYIO_MODE_EMUL)
                x86_genfb_mtrr_init(sc->sc_fboffset,
                    sc->sc_height * sc->sc_stride);
+#endif
        return true;
 }
 



Home | Main Index | Thread Index | Old Index