khenidak / dysk

Attach Azure disks in < 1 second. Attach as many as you want. Attach them where ever you want. dysk mounts Azure disks as Linux block devices directly on VMs without dependency on the host.
MIT License
181 stars 13 forks source link

Can not compile modules at v5.0 #66

Open miguelinux opened 5 years ago

miguelinux commented 5 years ago

When dysk kernel modules are compiled against v5.0 it can not compiled due to a https://github.com/torvalds/linux/commit/a1ce35fa49852db60fc6e268038530be533c5b15

it shows:

drivers/block/dysk/dysk_bdd.c:808:25: error: implicit declaration of function ‘blk_peek_request’; did you mean ‘blk_get_request’? [-Werror=implicit-function-declaration]
   while (NULL != (req = blk_peek_request(q))) {
                         ^~~~~~~~~~~~~~~~
                         blk_get_request
drivers/block/dysk/dysk_bdd.c:808:23: warning: assignment to ‘struct request *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]  
   while (NULL != (req = blk_peek_request(q))) {
                       ^
drivers/block/dysk/dysk_bdd.c:811:7: error: implicit declaration of function ‘blk_start_request’; did you mean ‘blk_abort_request’? [-Werror=implicit-function-declaration]
       blk_start_request(req);
       ^~~~~~~~~~~~~~~~~
       blk_abort_request
drivers/block/dysk/dysk_bdd.c: In function ‘io_hook’:
drivers/block/dysk/dysk_bdd.c:923:8: error: implicit declaration of function ‘blk_init_queue’; did you mean ‘blk_put_queue’? [-Werror=implicit-function-declaration]
   rq = blk_init_queue(io_request, &d->lock);
        ^~~~~~~~~~~~~~
        blk_put_queue