А вот то что мне выдается при компиляции rhinefet из исходников
make
gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2 -pipe -I/lib/modules/2.6.3-7mdk/build/include -I. -Wstrict-prototypes -fomit-frame-pointer -DVMNS -c -o rhine_main.o rhine_main.c
In file included from /lib/modules/2.6.3-7mdk/build/include/asm/processor.h:18,
from /lib/modules/2.6.3-7mdk/build/include/asm/thread_info.h:13,
from /lib/modules/2.6.3-7mdk/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.3-7mdk/build/include/linux/spinlock.h:12,
from /lib/modules/2.6.3-7mdk/build/include/linux/capability.h:45,
from /lib/modules/2.6.3-7mdk/build/include/linux/sched.h:7,
from /lib/modules/2.6.3-7mdk/build/include/linux/module.h:10,
from rhine.h:42,
from rhine_main.c:37:
/lib/modules/2.6.3-7mdk/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.3-7mdk/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.3-7mdk/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20,
from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:501,
from rhine.h:52,
from rhine_main.c:37:
/lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:501,
from rhine.h:52,
from rhine_main.c:37:
/lib/modules/2.6.3-7mdk/build/include/linux/irq.h: At top level:
/lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72,
from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11,
from /lib/modules/2.6.3-7mdk/build/include/linux/netdevice.h:501,
from rhine.h:52,
from rhine_main.c:37:
/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
rhine_main.c: In function `rhine_found1':
rhine_main.c:664: warning: `check_region' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/ioport.h:121)
rhine_main.c: In function `rhine_open':
rhine_main.c
warning: passing arg 2 of `request_irq' from incompatible pointer type
rhine_main.c
warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/module.h:502)
rhine_main.c: In function `rhine_close':
rhine_main.c
warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/module.h:514)
rhine_main.c: In function `rhine_xmit':
rhine_main.c
warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_intr':
rhine_main.c
warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `mii_set_auto_on':
rhine_main.c
warning: dereferencing type-punned pointer will break strict-aliasing rules
rhine_main.c
warning: dereferencing type-punned pointer will break strict-aliasing rules
rhine_main.c: In function `mii_set_auto_off':
rhine_main.c
warning: dereferencing type-punned pointer will break strict-aliasing rules
rhine_main.c
warning: dereferencing type-punned pointer will break strict-aliasing rules
rhine_main.c: In function `rhine_mii_ioctl':
rhine_main.c
warning: comparison of distinct pointer types lacks a cast
rhine_main.c: In function `rhine_notify_reboot':
rhine_main.c
warning: implicit declaration of function `pci_for_each_dev'
rhine_main.c
error: parse error before '{' token
rhine_main.c: At top level:
rhine_main.c
error: parse error before '}' token
make: *** [rhine_main.o] пЫЙВЛБ 1