kcuf
2012-May-01 15:05 UTC
Stable buildkernel warning: no previous prototype for legacy_pcib_map_msi
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.
James Hall
2012-May-01 16:22 UTC
Stable buildkernel warning: no previous prototype for legacy_pcib_map_msi
I discovered that my copy of src/sys/amd64/include/legacyvar.h does not include the two lines 60| int legacy_pcib_map_msi(device_t pcib, device_t dev, int irq, 61| uint64_t *addr, uint32_t *data); which is in the stable sources available through svn at http://svnweb.freebsd.org/base/stable/9/sys/amd64/include/legacyvar.h?revision=234150&view=markup&pathrev=234872. I guess I have a bad mirror or something... -- View this message in context: http://freebsd.1045724.n5.nabble.com/Stable-buildkernel-warning-no-previous-prototype-for-legacy-pcib-map-msi-tp5678227p5678391.html Sent from the freebsd-stable mailing list archive at Nabble.com.