Merge pull request #1470 from MJAsadi72/master
Fix compile on Rockylinux 9
This commit is contained in:
commit
4ad71a55b6
@ -31,18 +31,25 @@ static inline void bd_release_from_disk(struct block_device *bdev,
|
||||
return bd_unlink_disk_holder(bdev, disk);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
|
||||
#define KRETURN(x) return
|
||||
#define MAKE_RQ_RET_TYPE void
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
||||
#define KRETURN(x) ({ return (x); })
|
||||
#define MAKE_RQ_RET_TYPE blk_qc_t
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
#define KRETURN(x) return
|
||||
#define MAKE_RQ_RET_TYPE void
|
||||
#ifdef RHEL_MAJOR
|
||||
#if RHEL_MAJOR >= 9
|
||||
#define KRETURN(x) return
|
||||
#define MAKE_RQ_RET_TYPE void
|
||||
#endif
|
||||
#else
|
||||
#define KRETURN(x) ({ return (x); })
|
||||
#define MAKE_RQ_RET_TYPE int
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
|
||||
#define KRETURN(x) return
|
||||
#define MAKE_RQ_RET_TYPE void
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
||||
#define KRETURN(x) ({ return (x); })
|
||||
#define MAKE_RQ_RET_TYPE blk_qc_t
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||
#define KRETURN(x) return
|
||||
#define MAKE_RQ_RET_TYPE void
|
||||
#else
|
||||
#define KRETURN(x) ({ return (x); })
|
||||
#define MAKE_RQ_RET_TYPE int
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int __init cas_init_exp_objs(void)
|
||||
|
Loading…
Reference in New Issue
Block a user