Menu

#121 vmxnet fails to compile on kernels 3.0 nad later

closed-fixed
nobody
5
2011-12-26
2011-12-11
No

Hello,

vmxnet kernel module fails to build on kernels 3.0 and later up to and including latest 3.2rc5. Here is compile error:
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c: In function 'vmxnet_probe_device':
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:992:7: error: unknown field 'ndo_set_multicast_list' specified in initializer
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:992:7: warning: initialization from incompatible pointer type [enabled by default]
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:992:7: warning: (near initialization for 'vmxnet_netdev_ops.ndo_vlan_rx_add_vid') [enabled by default]
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c: In function 'vmxnet_map_pkt':
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:2047:32: error: incompatible type for argument 2 of 'pci_map_page'
include/asm-generic/pci-dma-compat.h:43:1: note: expected 'struct page *' but argument is of type 'struct <anonymous>'
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:2066:26: error: incompatible type for argument 2 of 'pci_map_page'
include/asm-generic/pci-dma-compat.h:43:1: note: expected 'struct page *' but argument is of type 'struct <anonymous>'
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c: In function 'vmxnet_rx_frags':
/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.c:2561:48: error: incompatible types when assigning to type 'struct <anonymous>' from type 'struct page *'
make[4]: *** [/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet/vmxnet.o] Error 1
make[3]: *** [_module_/usr/src/open-vm-tools-2011.11.20-535097/modules/linux/vmxnet] Error 2
make[2]: *** [vmxnet.ko] Error 2
make[1]: *** [vmxnet] Error 2
make: *** [all-recursive] Error 1

I use gcc 4.6.2, kernel 3.2rc5 from kernel,org and latest open-vm-tools.

Discussion

  • Zbigniew Luszpinski

    • status: open --> closed-fixed
     
  • Zbigniew Luszpinski

    Fixed in open-vm-tools-2011.12.20-562307.tar.gz

     

Log in to post a comment.