NetBSD-Bugs archive

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

port-i386/44720: Build error in x86/x86/mpacpi.c



>Number:         44720
>Category:       port-i386
>Synopsis:       Build error in x86/x86/mpacpi.c
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 14 02:20:00 +0000 2011
>Originator:     Aran Clauson
>Release:        5.99.47
>Organization:
>Environment:
NetBSD piglet 5.99.47 NetBSD 5.99.47 (PIGLET) #0: Sun Mar 13 03:33:50 PDT 2011  
root@piglet:/home/NetBSD/obj/sys/arch/i386/compile/PIGLET i386
>Description:
When building a minimally configured kernel I get warnings, which are treated 
as errors, in x86/x86/mpacpi.c:mpacpi_get_bbn.  The local variables  class, 
dvid, and tag are unused.
>How-To-Repeat:
I am unsure of the configuration options that sets NPCHB equal to zero, but 
configure the kernel thus and compile.
>Fix:
Index: sys/arch/x86/x86/mpacpi.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/mpacpi.c,v
retrieving revision 1.89
diff -u -r1.89 mpacpi.c
--- sys/arch/x86/x86/mpacpi.c   7 Aug 2010 09:41:19 -0000       1.89
+++ sys/arch/x86/x86/mpacpi.c   14 Mar 2011 02:16:46 -0000
@@ -524,9 +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))
                *bus = ACPI_LOWORD(val);



Home | Main Index | Thread Index | Old Index