Оказа се че в новото ядро в дебилиан не ми подътжа кардридъра на лаптопа(драйвер rts_pstor). Изтеглих драйвера от сайта на RealTech и се опитах да го цомпилирам. Изплю ми няколко еднотипни грешки и неща свързани с тях.
/rts_pstor# make
sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
cp -f ./define.release ./define.h
make -C /lib/modules/3.9-1-amd64/build/ SUBDIRS=/home/ya/rts_pstor modules
make[1]: Entering directory `/usr/src/linux-headers-3.9-1-amd64'
CC [M] /home/ya/rts_pstor/rtsx.o
/home/ya/rts_pstor/rtsx.c:916:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_probe’
/home/ya/rts_pstor/rtsx.c:1080:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_remove’
/home/ya/rts_pstor/rtsx.c:1106:11: error: ‘rtsx_probe’ undeclared here (not in a function)
/home/ya/rts_pstor/rtsx.c:1107:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/ya/rts_pstor/rtsx.c:1107:24: error: ‘rtsx_remove’ undeclared here (not in a function)
/home/ya/rts_pstor/rtsx.c:485:12: warning: ‘rtsx_control_thread’ defined but not used [-Wunused-function]
/home/ya/rts_pstor/rtsx.c:596:12: warning: ‘rtsx_polling_thread’ defined but not used [-Wunused-function]
/home/ya/rts_pstor/rtsx.c:745:13: warning: ‘quiesce_and_remove_host’ defined but not used [-Wunused-function]
/home/ya/rts_pstor/rtsx.c:780:13: warning: ‘release_everything’ defined but not used [-Wunused-function]
/home/ya/rts_pstor/rtsx.c:790:12: warning: ‘rtsx_scan_thread’ defined but not used [-Wunused-function]
/home/ya/rts_pstor/rtsx.c:816:13: warning: ‘rtsx_init_options’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[4]: *** [/home/ya/rts_pstor/rtsx.o] Error 1
make[3]: *** [_module_/home/ya/rts_pstor] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.9-1-amd64'
make: *** [default] Error 2
Ред 916 от rtsx.c изглежда по следния начин:
static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
Някаква идея на какво се дължи проблема?