root@debian:/home/john77/Desktop/r8101-1.009.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/john77/Desktop/r8101-1.009.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/home/john77/Desktop/r8101-1.009.00/src'
make -C src/ modules
make[1]: Entering directory `/home/john77/Desktop/r8101-1.009.00/src'
make -C /lib/modules/3.8-0.slh.2-aptosid-686/build SUBDIRS=/home/john77/Desktop/r8101-1.009.00/src modules
make[2]: Entering directory `/usr/src/linux-headers-3.8-0.slh.2-aptosid-686'
CC [M] /home/john77/Desktop/r8101-1.009.00/src/r8101_n.o
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1233:2: error: unknown field ‘get_rx_csum’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1233:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1233:2: warning: (near initialization for ‘rtl8101_ethtool_ops.nway_reset’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1234:2: error: unknown field ‘set_rx_csum’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1234:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1234:2: warning: (near initialization for ‘rtl8101_ethtool_ops.get_link’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1235:2: error: unknown field ‘get_tx_csum’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1235:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1235:2: warning: (near initialization for ‘rtl8101_ethtool_ops.get_eeprom_len’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1236:2: error: unknown field ‘set_tx_csum’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1236:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1236:2: warning: (near initialization for ‘rtl8101_ethtool_ops.get_eeprom’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1237:2: error: unknown field ‘get_sg’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1237:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1237:2: warning: (near initialization for ‘rtl8101_ethtool_ops.set_eeprom’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1238:2: error: unknown field ‘set_sg’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1238:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1238:2: warning: (near initialization for ‘rtl8101_ethtool_ops.get_coalesce’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1240:2: error: unknown field ‘get_tso’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1240:14: error: ‘ethtool_op_get_tso’ undeclared here (not in a function)
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1241:2: error: unknown field ‘set_tso’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1241:14: error: ‘ethtool_op_set_tso’ undeclared here (not in a function)
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1247:2: error: unknown field ‘get_stats_count’ specified in initializer
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1247:2: warning: initialization from incompatible pointer type [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1247:2: warning: (near initialization for ‘rtl8101_ethtool_ops.set_phys_id’) [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_netpoll’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1441:2: error: implicit declaration of function ‘disable_irq’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:1447:2: error: implicit declaration of function ‘enable_irq’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: At top level:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2237:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8101_init_board’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2652:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8101_init_one’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2779:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8101_remove_one’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_open’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2817:2: error: implicit declaration of function ‘request_irq’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2817:91: error: ‘IRQF_SHARED’ undeclared (first use in this function)
/home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2817:91: note
: each undeclared identifier is reported only once
for each function it appears in
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:2874:2: error: implicit declaration of function ‘free_irq’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_xmit_frags’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3413:3: error: incompatible type for argument 1 of ‘page_address’
In
file included from
/usr
/src
/linux
-headers
-3.8-0.slh
.2
-aptosid
-686/arch
/x86
/include/asm
/pci
.h
:4:0, from include/linux/pci.h:1422,
from /home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:32:
include/linux/mm.h:789:7: note: expected ‘const struct page *’ but argument is of type ‘struct <anonymous>’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_interrupt’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3893:4: error: implicit declaration of function ‘netif_rx_schedule_prep’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3894:5: error: implicit declaration of function ‘__netif_rx_schedule’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3926:9: error: expected expression before ‘)’ token
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3926:2: warning: ‘return’ with a value, in function returning void [enabled by default]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_poll’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3947:3: error: implicit declaration of function ‘netif_rx_complete’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_down’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:3968:15: warning: unused variable ‘poll_locked’ [-Wunused-variable]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: In function ‘rtl8101_set_rx_mode’:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4080:17: error: ‘struct net_device’ has no member named ‘mc_count’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4089:27: error: ‘struct net_device’ has no member named ‘mc_list’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4089:55: error: ‘struct net_device’ has no member named ‘mc_count’
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4090:28: error: dereferencing pointer to incomplete type
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4091:17: error: dereferencing pointer to incomplete type
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c: At top level:
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4230:12: error: ‘rtl8101_init_one’ undeclared here (not in a function)
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4231:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/john77/Desktop/r8101-1.009.00/src/r8101_n.c:4231:25: error: ‘rtl8101_remove_one’ undeclared here (not in a function)
/home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:3481:1: warning
: ‘rtl8101_start_xmit’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:3385:1: warning
: ‘rtl8101_tx_timeout’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:4138:1: warning
: ‘rtl8101_get_stats’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:3054:1: warning
: ‘rtl8101_change_mtu’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1470:1: warning
: ‘rtl8101_set_mac_address’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2223:1: warning
: ‘rtl8101_phy_power_down’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:3933:12: warning
: ‘rtl8101_poll’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:417:1: warning
: ‘rtl8101_ephy_read’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:526:1: warning
: ‘rtl8101_xmii_reset_pending’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:544:1: warning
: ‘rtl8101_xmii_link_ok’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:553:1: warning
: ‘rtl8101_xmii_reset_enable’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:599:1: warning
: ‘rtl8101_link_option’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:721:1: warning
: ‘rtl8101_set_speed_xmii’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:997:1: warning
: ‘rtl8101_gset_xmii’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1225:27: warning
: ‘rtl8101_ethtool_ops’
defined but not used
[-Wunused
-variable
] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1257:1: warning
: ‘rtl8101_get_mac_version’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1298:1: warning
: ‘rtl8101_print_mac_version’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1436:1: warning
: ‘rtl8101_netpoll’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:1452:1: warning
: ‘rtl8101_release_board’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2179:1: warning
: ‘rtl8101_do_ioctl’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2585:17: warning
: ‘rtl8101_try_msi’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2600:13: warning
: ‘rtl8101_disable_msi’
defined but not used
[-Wunused
-function] /home
/john77
/Desktop
/r8101
-1
.009
.00
/src
/r8101_n
.c
:2611:1: warning
: ‘rtl8101_check_eeprom’
defined but not used
[-Wunused
-function] cc1: some warnings being treated as errors
make[3]: *** [/home/john77/Desktop/r8101-1.009.00/src/r8101_n.o] Ошибка 1
make[2]: *** [_module_/home/john77/Desktop/r8101-1.009.00/src] Ошибка 2
make[2]: Leaving directory `/usr/src/linux-headers-3.8-0.slh.2-aptosid-686'
make[1]: *** [modules] Ошибка 2
make[1]: Leaving directory `/home/john77/Desktop/r8101-1.009.00/src'
make: *** [modules] Ошибка 2