summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-11 12:20:17 +0100
committerSimon Rettberg2024-01-11 12:20:17 +0100
commit7cba241d5ad29d2f63769e26b1c48632713267e7 (patch)
treee271de2493719d2daca94c9025f227cda379a0b3
parentAdd debug spam (diff)
downloadxloop-7cba241d5ad29d2f63769e26b1c48632713267e7.tar.gz
xloop-7cba241d5ad29d2f63769e26b1c48632713267e7.tar.xz
xloop-7cba241d5ad29d2f63769e26b1c48632713267e7.zip
Fix build on 5.15.132 and newer
Some changes in the block layer were backported from 5.17 to 5.15.132, so our version check regarding the GENHD_FL_NO_PART symbol failed.
-rw-r--r--src/kernel/xloop_main_5.15.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/xloop_main_5.15.c b/src/kernel/xloop_main_5.15.c
index bc869b8..5e02fdd 100644
--- a/src/kernel/xloop_main_5.15.c
+++ b/src/kernel/xloop_main_5.15.c
@@ -97,7 +97,8 @@
#define XLOOP_IDLE_WORKER_TIMEOUT (60 * HZ)
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 132) || \
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
#define GENHD_FL_NO_PART GENHD_FL_NO_PART_SCAN
#endif