Merge pull request #1480 from robertbaldyga/fix-redefined

Fix redefined macro error
This commit is contained in:
Robert Baldyga 2024-07-23 22:06:24 +02:00 committed by GitHub
commit 518dd6776e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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