mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 04:36:22 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user