NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/48690: ixg* driver doesn't compile



>Number:         48690
>Category:       kern
>Synopsis:       ixg* driver doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 30 10:45:00 +0000 2014
>Originator:     Uwe Toenjes
>Release:        NetBSD-6.99.38 (amd64)
>Organization:
University of Leipzig
>Environment:
NetBSD ipv6event.rz.uni-leipzig.de 6.99.31 NetBSD 6.99.31 (MYCONF7) #0: Thu Feb 
20 09:07:38 CET 2014  
root%ipv6event.rz.uni-leipzig.de@localhost:/usr/obj/sys/arch/amd64/compile/MYCONF7
 amd64
>Description:
the ixgbe driver for Intel 8259x based NICs doesn't compile
the ixgbe driver is not included in the ALL configuration for i386/amd64

Error message:

#   compile  GENERIC/ixgbe.o
/usr/src/obj/tooldir.NetBSD-6.99.31-amd64/bin/x86_64--netbsd-gcc
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float
-ffreestanding -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer
-fstack-protector -Wstack-protector --param ssp-buffer-size=1
-fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes
-Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare
--sysroot=/usr/src/obj/destdir.amd64 -Damd64 -Dx86_64 -I.
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys
-nostdinc -DDIAGNOSTIC -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
-D_FORTIFY_SOURCE=2 -I/usr/src/sys/external/bsd/ipf
-I/usr/src/sys/external/isc/atheros_hal/dist
-I/usr/src/sys/external/isc/atheros_hal/ic
-I/usr/src/sys/external/bsd/drm/dist/bsd-core
-I/usr/src/sys/external/bsd/drm/dist/shared-core
-I/usr/src/sys/../common/include
-I/usr/src/sys/external/bsd/acpica/dist/include -c
/usr/src/sys/dev/pci/ixgbe/ixgbe.c
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_xmit':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:1767:31: error: variable 'txbuf_mapped'
set but not used [-Werror=unused-but-set-variable]
  struct ixgbe_tx_buf *txbuf, *txbuf_mapped;
                               ^
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_allocate_legacy':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:2264:6: error: variable 'rid' set but not
used [-Werror=unused-but-set-variable]
  int rid = 0;
      ^
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_free_pci_resources':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:2552:12: error: variable 'memrid' set but
not used [-Werror=unused-but-set-variable]
  int  rid, memrid;
            ^
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_setup_receive_ring':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:3912:12: error: variable 'dev' set but
not used [-Werror=unused-but-set-variable]
  device_t  dev;
            ^
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_rx_input':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:4292:19: error: variable 'ec' set but not
used [-Werror=unused-but-set-variable]
  struct ethercom *ec;
                   ^
/usr/src/sys/dev/pci/ixgbe/ixgbe.c: In function 'ixgbe_rx_checksum':
/usr/src/sys/dev/pci/ixgbe/ixgbe.c:4671:7: error: variable 'sctp' set but
not used [-Werror=unused-but-set-variable]
  bool sctp = FALSE;
       ^
cc1: all warnings being treated as errors
*** [ixgbe.o] Error code 1

>How-To-Repeat:
add the driver to the kernel configuration and compile

ixg*     at pci? dev ? function ?    # Intel 8259x 10GbE
>Fix:



Home | Main Index | Thread Index | Old Index