stec-inc / EnhanceIO

EnhanceIO Open Source for Linux
Other
420 stars 176 forks source link

Compilation Errors with Kernel 4.7 #121

Open FoxStop opened 8 years ago

FoxStop commented 8 years ago

Hello, so while executing make i got the following compilation errors. Before the Kernel update it compiled just fine but with the new 4.7 Kernel, it's broken:

/home/XXX/EnhanceIO/Driver/enhanceio/eio_conf.c: In function ‘eio_init_ssddev_props’: /home/XXX/EnhanceIO/Driver/enhanceio/eio_conf.c:1434:28: error: implicit declaration of function ‘bio_get_nr_vecs’ [-Werror=implicit-function-declaration]

I also get this error a few times:

/usr/src/linux-headers-4.7.0-rc4-common/include/linux/wait.h:1194:1: note: expected ‘int (_)(struct wait_bitkey *, int)’ but argument is of type ‘int ()(struct wait_bit_key )’ wait_on_bit_lock_action(unsigned long word, int bit, wait_bit_action_f *action ^ /home/XXX/EnhanceIO/Driver/enhanceio/eio_conf.c:1914:28: error: passing argument 3 of ‘wait_on_bit_lock_action’ from incompatible pointer type [-Werror=incompatible-pointer-types] EIO_UPDATE_LIST, eio_wait_schedule,

dominix commented 7 years ago

same error with kernel 4.4.0

elmystico commented 7 years ago

Have you tried code from my repo? https://github.com/elmystico/EnhanceIO The code is somehow patched (u can look for the details there)