#@make -C /lib/modules/2.6.23-gentoo-r3/build M=/home/src/et131x modules
make[1]: Entering directory `/usr/src/linux-2.6.23-gentoo-r3'
CC [M] /home/src/et131x/et131x_main.o
CC [M] /home/src/et131x/et131x_initpci.o
CC [M] /home/src/et131x/et131x_isr.o
CC [M] /home/src/et131x/et131x_netdev.o
CC [M] /home/src/et131x/et131x_supp.o
CC [M] /home/src/et131x/et131x_config.o
CC [M] /home/src/et131x/et131x_debug.o
CC [M] /home/src/et131x/ET1310_jagcore.o
CC [M] /home/src/et131x/ET1310_tx.o
CC [M] /home/src/et131x/ET1310_rx.o
/home/src/et131x/ET1310_rx.c: In function ‘et131x_rx_dma_memory_alloc’:
/home/src/et131x/ET1310_rx.c:536: error: too many arguments to function ‘kmem_cache_create’
/home/src/et131x/ET1310_rx.c: In function ‘nic_rx_pkts’:
/home/src/et131x/ET1310_rx.c:1670: warning: unused variable ‘vlan_tag’
make[2]: *** [/home/src/et131x/ET1310_rx.o] Error 1
make[1]: *** [_module_/home/src/et131x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo-r3'
make: *** [modules] Error 2
Running make errors out.
#@make -C /lib/modules/2.6.23-gentoo-r3/build M=/home/src/et131x modules
make[1]: Entering directory `/usr/src/linux-2.6.23-gentoo-r3'
CC [M] /home/src/et131x/et131x_main.o
CC [M] /home/src/et131x/et131x_initpci.o
CC [M] /home/src/et131x/et131x_isr.o
CC [M] /home/src/et131x/et131x_netdev.o
CC [M] /home/src/et131x/et131x_supp.o
CC [M] /home/src/et131x/et131x_config.o
CC [M] /home/src/et131x/et131x_debug.o
CC [M] /home/src/et131x/ET1310_jagcore.o
CC [M] /home/src/et131x/ET1310_tx.o
CC [M] /home/src/et131x/ET1310_rx.o
/home/src/et131x/ET1310_rx.c: In function ‘et131x_rx_dma_memory_alloc’:
/home/src/et131x/ET1310_rx.c:536: error: too many arguments to function ‘kmem_cache_create’
/home/src/et131x/ET1310_rx.c: In function ‘nic_rx_pkts’:
/home/src/et131x/ET1310_rx.c:1670: warning: unused variable ‘vlan_tag’
make[2]: *** [/home/src/et131x/ET1310_rx.o] Error 1
make[1]: *** [_module_/home/src/et131x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo-r3'
make: *** [modules] Error 2
Emerge info:
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Wed, 26 Dec 2007 23:00:01 +0000
app-shells/bash: 3.2_p17
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
I found a patch at http://groups.google.se/group/linux.debian.bugs.dist/browse_thread/thread/1a96a801043e9a4d
I am using the gentoo 2.6.23 tuxonice sources. After applying the patch it compiles.
--- ET1310_rx.c 2007-02-27 15:13:07.000000000 +0100
+++ ../../ET1310_rx.c 2007-09-03 23:08:27.000000000 +0200
@@ -532,7 +532,9 @@ int et131x_rx_dma_memory_alloc( ET131X_A
0,
SLAB_CACHE_DMA |
SLAB_HWCACHE_ALIGN,
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
NULL,
+#endif
NULL );