Date: Mon, 29 Jan 2007 18:37:38 +0200 From: "Conrad Burger" <conrad.burger@mxit.com> To: <freebsd-stable@freebsd.org> Subject: Trying to Compile [HEAD] BCE driver with SERDES support on RELEASE_6_2 Message-ID: <45FBF1D2998C93429047415BE8091CC8283A2D@HERMES.swistgroup.com>
next in thread | raw e-mail | index | archive | help
******************************************************************* 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.=20 It seems the new code adds SERDES support to the BCE driver.=20 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=3Dc99 -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=3D8000 --param = inline-unit-growth=3D100 --param large-function-growth=3D1000 -mcmodel=3Dkernel -mno-red-zone = -mfpmath=3D387 -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=20 warnings, but setting NO_WERROR=3Dyes doesn't seem to work.=20 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=20 Conrad=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45FBF1D2998C93429047415BE8091CC8283A2D>