diff options
author | Simon Rettberg | 2024-03-15 16:17:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-15 16:17:23 +0100 |
commit | 3febe4eb2cc3527818739a7591a23b4ae1f0eb3f (patch) | |
tree | a18c4fc16183f4b90341611c52653858004dabe6 /src | |
parent | cmake: Turn modpost errors into warnings (diff) | |
download | dnbd3-3febe4eb2cc3527818739a7591a23b4ae1f0eb3f.tar.gz dnbd3-3febe4eb2cc3527818739a7591a23b4ae1f0eb3f.tar.xz dnbd3-3febe4eb2cc3527818739a7591a23b4ae1f0eb3f.zip |
[KERNEL] Fix build on 5.15 kernels >= 5.15.132
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/blk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/blk.c b/src/kernel/blk.c index 2d733b1..69e4583 100644 --- a/src/kernel/blk.c +++ b/src/kernel/blk.c @@ -473,6 +473,7 @@ int dnbd3_blk_add_device(dnbd3_device_t *dev, int minor) #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) \ + || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 132)) \ || RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) dev->disk->flags |= GENHD_FL_NO_PART; #else |