Description: Allow compile on 4.13 and later kernels In 4.13 bi_error was replaced by bi_status. Fix code to convert IO errors to the new status variable. Author: Stefan Bader Forwarded: No Index: flashcache-3.1.3+git20150701/src/flashcache_subr.c =================================================================== --- flashcache-3.1.3+git20150701.orig/src/flashcache_subr.c +++ flashcache-3.1.3+git20150701/src/flashcache_subr.c @@ -739,7 +739,11 @@ flashcache_bio_endio(struct bio *bio, in #elif LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) bio_endio(bio, error); #else +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,13,0) bio->bi_error = error; +#else + bio->bi_status = errno_to_blk_status(error); +#endif bio_endio(bio); #endif }