From 35af110b098dc57ce798aeb4f7f608cd3c3f9060 Mon Sep 17 00:00:00 2001 From: "Borak, Nathan" Date: Mon, 4 Aug 2025 14:21:41 -0700 Subject: [PATCH 1/2] Added check for RHEL 9.6+ --- include/linux/minmax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/minmax.h b/include/linux/minmax.h index 2f56476e..9f5a7f64 100644 --- a/include/linux/minmax.h +++ b/include/linux/minmax.h @@ -11,7 +11,7 @@ #include_next #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 16, 0) && RHEL_RELEASE_CODE < 0x906 static inline bool in_range64(u64 val, u64 start, u64 len) { return (val - start) < len; From 7f60bac25de42d9c95f01ad06afa4b0837312437 Mon Sep 17 00:00:00 2001 From: Nathan Borak <39603872+nathanborak@users.noreply.github.com> Date: Thu, 7 Aug 2025 09:45:33 -0700 Subject: [PATCH 2/2] Update minmax.h --- include/linux/minmax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/minmax.h b/include/linux/minmax.h index 9f5a7f64..acdf7f97 100644 --- a/include/linux/minmax.h +++ b/include/linux/minmax.h @@ -11,7 +11,7 @@ #include_next #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 16, 0) && RHEL_RELEASE_CODE < 0x906 +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0) && RHEL_RELEASE_CODE < 0x906 static inline bool in_range64(u64 val, u64 start, u64 len) { return (val - start) < len;