From 2bcb220a03567ab2cf95766e70d5091a5f419d78 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 22 Jul 2024 15:53:10 +0200 Subject: [PATCH] Fix redefined macro error Signed-off-by: Robert Baldyga --- modules/cas_cache/exp_obj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/cas_cache/exp_obj.c b/modules/cas_cache/exp_obj.c index d8d6011..d4b329a 100644 --- a/modules/cas_cache/exp_obj.c +++ b/modules/cas_cache/exp_obj.c @@ -48,6 +48,8 @@ static inline void bd_release_from_disk(struct block_device *bdev, /* For RHEL 9.x we assume backport from kernel 5.18+ */ #ifdef RHEL_MAJOR #if RHEL_MAJOR >= 9 + #undef KRETURN + #undef MAKE_RQ_RET_TYPE #define KRETURN(x) return #define MAKE_RQ_RET_TYPE void #endif