From 873ae4de569dc50061ab9f9e5fe1ce4bd9d60edc Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 20 Feb 2019 11:30:21 +0100 Subject: [PATCH] if: move compat check --- kernel/compat.h | 4 ++++ kernel/mars_if.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/compat.h b/kernel/compat.h index 78c519bd..d3e2aedb 100644 --- a/kernel/compat.h +++ b/kernel/compat.h @@ -84,4 +84,8 @@ extern int _compat_unlink( #define HAS_VOID_RELEASE #endif +#ifdef __bvec_iter_bvec +#define HAS_BVEC_ITER +#endif + #endif /* _MARS_COMPAT */ diff --git a/kernel/mars_if.c b/kernel/mars_if.c index f45cf16d..36d13ffa 100644 --- a/kernel/mars_if.c +++ b/kernel/mars_if.c @@ -62,9 +62,6 @@ #include "lib_limiter.h" // remove_this -#ifdef __bvec_iter_bvec -#define HAS_BVEC_ITER -#endif /* adaptation to 4246a0b63bd8f56a1469b12eafeb875b1041a451 and 8ae126660fddbeebb9251a174e6fa45b6ad8f932 */ #ifndef bio_io_error #define HAS_BI_ERROR