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 with no pchb. From Aran Clauson i...



details:   https://anonhg.NetBSD.org/src/rev/fad23d41d389
branches:  trunk
changeset: 763283:fad23d41d389
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed Mar 16 06:02:36 2011 +0000

description:
Fix build with no pchb. From Aran Clauson in PR 44720.

diffstat:

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

diffs (29 lines):

diff -r da6591699e7e -r fad23d41d389 sys/arch/x86/x86/mpacpi.c
--- a/sys/arch/x86/x86/mpacpi.c Wed Mar 16 05:49:43 2011 +0000
+++ b/sys/arch/x86/x86/mpacpi.c Wed Mar 16 06:02:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpacpi.c,v 1.89 2010/08/07 09:41:19 jruoho Exp $       */
+/*     $NetBSD: mpacpi.c,v 1.90 2011/03/16 06:02:36 dholland Exp $     */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.89 2010/08/07 09:41:19 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.90 2011/03/16 06:02:36 dholland Exp $");
 
 #include "acpica.h"
 #include "opt_acpi.h"
@@ -524,8 +524,10 @@
 {
        ACPI_STATUS rv;
        ACPI_INTEGER val;
+#if NPCHB > 0
        pcireg_t class, dvid;
        pcitag_t tag;
+#endif
 
        rv = acpi_eval_integer(handle, METHOD_NAME__BBN, &val);
        if (ACPI_SUCCESS(rv))



Home | Main Index | Thread Index | Old Index