Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2009 16:48:24 +0400
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc:        current@freebsd.org, sparc64@freebsd.org
Subject:   Re: [head tinderbox] failure on sparc64/sparc64
Message-ID:  <ZyuXWJHoXG4albRK11oEE5UlT8s@j4OYE6OL8eALCd4BvSxIfwgoxSc>
In-Reply-To: <20090602120612.37D267302F@freebsd-current.sentex.ca>
References:  <20090602120612.37D267302F@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--fmvA4kSBHQVZhkR6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Tue, Jun 02, 2009 at 08:06:12AM -0400, FreeBSD Tinderbox wrote:
> /src/sys/dev/pci/pci.c:320: error: for each function it appears in.)
> /src/sys/dev/pci/pci.c:320: error: expected ';' before 'ap'
> cc1: warnings being treated as errors
> /src/sys/dev/pci/pci.c:325: warning: implicit declaration of function 'va_start'
> /src/sys/dev/pci/pci.c:325: warning: nested extern declaration of 'va_start'
> /src/sys/dev/pci/pci.c:325: error: 'ap' undeclared (first use in this function)
> /src/sys/dev/pci/pci.c:327: warning: implicit declaration of function 'va_end'
> /src/sys/dev/pci/pci.c:327: warning: nested extern declaration of 'va_end'
> *** Error code 1

Perhaps the attached patch will fix the stuff?  For enabled ACPI
(__HAVE_ACPI) machine/stdarg.h is brought by contrib/dev/acpica/acpi.h,
but seems like sparc64 nave no ACPI.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #

--fmvA4kSBHQVZhkR6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=p

diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 5055762..63d9cee 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/bus.h>
 #include <sys/rman.h>
 #include <machine/resource.h>
+#include <machine/stdarg.h>
 
 #if defined(__i386__) || defined(__amd64__)
 #include <machine/intr_machdep.h>

--fmvA4kSBHQVZhkR6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZyuXWJHoXG4albRK11oEE5UlT8s>