******************************************************************* Click here to view our e-mail legal notice: http://www.mxit.co.za/pdfs/mxit_legal.pdf or call: +27 21 888 5000 ******************************************************************* I am trying to compile the BCE driver from HEAD on RELEASE_6_2. It seems the new code adds SERDES support to the BCE driver.
The only change I made was to comment the incompatible VLAN code. When I try to compile the kernel it breaks at the BCE driver(not surprising). -------------- cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/dev/bce/if_bce.c /usr/src/sys/dev/bce/if_bce.c: In function `bce_attach': /usr/src/sys/dev/bce/if_bce.c:488: warning: implicit declaration of function `pci_msi_count' /usr/src/sys/dev/bce/if_bce.c:488: warning: nested extern declaration of `pci_msi_count' /usr/src/sys/dev/bce/if_bce.c:489: warning: implicit declaration of function `pci_alloc_msi' /usr/src/sys/dev/bce/if_bce.c:489: warning: nested extern declaration of `pci_alloc_msi' /usr/src/sys/dev/bce/if_bce.c: In function `bce_release_resources': /usr/src/sys/dev/bce/if_bce.c:2532: warning: implicit declaration of function `pci_release_msi' /usr/src/sys/dev/bce/if_bce.c:2532: warning: nested extern declaration of `pci_release_msi' *** Error code 1 Stop in /usr/obj/usr/src/sys/SMP. *** Error code 1 ------------------ I have tried to disable the "-Werror" flag to see if it would compile with the warnings, but setting NO_WERROR=yes doesn't seem to work. Is there another way of disabling the "-Werror" flag? Also does the MSI API exist on Releng_6 or is it just on Current? And if someone can explain the warning or create a patch it would help a lot. Regards Conrad _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"