Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2012 08:05:32 -0700 (PDT)
From:      kcuf <james@slohall.com>
To:        freebsd-stable@freebsd.org
Subject:   Stable buildkernel warning: no previous prototype for legacy_pcib_map_msi
Message-ID:  <1335884732114-5678227.post@n5.nabble.com>

next in thread | raw e-mail | index | archive | help
I'm running stable that I built 1/12/12 on an amd64 system and I just updated
the sources and now every time I try to compile the kernel I get the error:

=====================
cc1: warnings being treated as errors
/usr/src/sys/x86/pci/pci_bus.c:118: warning: no previous prototype for
'legacy_pcib_map_msi' [-Wmissing-prototypes]
/usr/src/sys/x86/pci/pci_bus.c: In function 'legacy_pcib_map_msi':
/usr/src/sys/x86/pci/pci_bus.c:127: warning: implicit declaration of
function 'legacy_get_pcislot'
/usr/src/sys/x86/pci/pci_bus.c:127: warning: nested extern declaration of
'legacy_get_pcislot' [-Wnested-externs]
/usr/src/sys/x86/pci/pci_bus.c:128: warning: implicit declaration of
function 'legacy_get_pcifunc'
/usr/src/sys/x86/pci/pci_bus.c:128: warning: nested extern declaration of
'legacy_get_pcifunc' [-Wnested-externs]
/usr/src/sys/x86/pci/pci_bus.c: In function 'legacy_pcib_identify':
/usr/src/sys/x86/pci/pci_bus.c:470: warning: implicit declaration of
function 'legacy_set_pcislot'
/usr/src/sys/x86/pci/pci_bus.c:470: warning: nested extern declaration of
'legacy_set_pcislot' [-Wnested-externs]
/usr/src/sys/x86/pci/pci_bus.c:471: warning: implicit declaration of
function 'legacy_set_pcifunc'
/usr/src/sys/x86/pci/pci_bus.c:471: warning: nested extern declaration of
'legacy_set_pcifunc' [-Wnested-externs]
*** Error code 1

Stop in /usr/obj/usr/src/sys/ICKERN.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
=====================

I have tried both my custom kernel config and the generic config with the
same errror. My src.conf only has the line

LOADER_ZFS_SUPPORT="YES"

and my make.conf has

WRKDIRPREFIX=/usr/obj
NOPORTDOCS="YES"
WITHOUT_CUPS="YES"
WITH_NEW_XORG="YES"
WITH_VIM_OPTIONS="YES"
# added by use.perl 2012-02-15 23:09:33
PERL_VERSION=5.12.4

If it makes any difference, my current kernel does not have COMPAT_FREEBSD32
enable, however enabling and disabling this option still caused this error.
Anyone have any advice?


--
View this message in context: http://freebsd.1045724.n5.nabble.com/Stable-buildkernel-warning-no-previous-prototype-for-legacy-pcib-map-msi-tp5678227.html
Sent from the freebsd-stable mailing list archive at Nabble.com.



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