From 0244c27a5d97a967df934f255887b592d5bb6c8c Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 20 Feb 2019 11:28:11 +0100 Subject: [PATCH] bio: move compat check --- kernel/compat.h | 5 +++++ kernel/mars_bio.c | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/compat.h b/kernel/compat.h index 46228080..4e3bb6bf 100644 --- a/kernel/compat.h +++ b/kernel/compat.h @@ -75,4 +75,9 @@ extern int _compat_unlink( #define HAS_BI_ERROR #endif +/* adapt to 4e1b2d52a80d79296a5d899d73249748dea71a53 and many others */ +#ifdef bio_op +#define HAS_NEW_BIO_OP +#endif + #endif /* _MARS_COMPAT */ diff --git a/kernel/mars_bio.c b/kernel/mars_bio.c index 02f61ff8..8ea4e05a 100644 --- a/kernel/mars_bio.c +++ b/kernel/mars_bio.c @@ -41,14 +41,7 @@ #include "lib_mapfree.h" #include "mars_bio.h" -// remove_this -/* adapt to 4e1b2d52a80d79296a5d899d73249748dea71a53 and many others */ -#ifdef bio_op -#define HAS_NEW_BIO_OP -#endif - -// end_remove_this int bio_nr_requests = 1024; static struct timing_stats timings[2] = {};