Compile Fails under new linux kernels
Brought to you by:
aa4rc
Gento LInux 64 bit
kernel 3.3.8
/usr/src/ft245/ft245.c: In function 'ft245_disconnect':
/usr/src/ft245/ft245.c:877:5: error: implicit declaration of function 'lock_kernel'
/usr/src/ft245/ft245.c:885:5: error: implicit declaration of function 'unlock_kernel'
make[2]: *** [/usr/src/ft245/ft245.o] Error 1
make[1]: *** [_module_/usr/src/ft245] Error 2
make[1]: Leaving directory `/usr/src/linux-3.3.8-gentoo'
make: *** [default] Error 2
This happends because BKL (Big Kernel Lock functions) in the 2.6.37 kernel was removed for best support multiprocessor systems.
I am attached the patch for latest kernels. See in patches.
Last edit: Ivan Volnikov 2014-01-17
https://sourceforge.net/p/ftdi-usb-ft245/patches/2/