From 7cba241d5ad29d2f63769e26b1c48632713267e7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 11 Jan 2024 12:20:17 +0100 Subject: 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. --- src/kernel/xloop_main_5.15.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522