scst/include/backport.h: Fix backport for new stable kernels

This patch fixes the build against kernel versions >= 6.6.23.
This commit is contained in:
Gleb Chesnokov
2024-05-03 12:18:43 +03:00
parent 48ef50966a
commit 52b5e841cf
+4 -2
View File
@@ -282,9 +282,11 @@ static inline void blkdev_put_backport(struct block_device *bdev, void *holder)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 7, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 7, 0) && \
(LINUX_VERSION_CODE >> 8 != KERNEL_VERSION(6, 6, 0) >> 8 || \
LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 23))
/*
* See also commit e719b4d15674 ("block: Provide bdev_open_* functions") # v6.7.
* See also commit e719b4d15674 ("block: Provide bdev_open_* functions") # v6.7, v6.6.23.
*/
struct bdev_handle {
struct block_device *bdev;