[PATCH 55/74] backports: fix get_random_u32_below() version

Johannes Berg <[email protected]> Fri, 24 May 2024 19:08:07 +0200
Newsgroups org.kernel.vger.backports
Message-ID <20240524190907.c339801c1af2.I04c1d4108a0c85e5fd474af0fd1b3bc0f4127ba4@changeid>
From: Johannes Berg <[email protected]>

This got backported to 6.1.4.

Signed-off-by: Johannes Berg <[email protected]>
---
 backport/backport-include/linux/random.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/backport-include/linux/random.h b/backport/backport-include/linux/random.h
index 89e9ce022505..f7a50dbc8dd6 100644
--- a/backport/backport-include/linux/random.h
+++ b/backport/backport-include/linux/random.h
@@ -10,7 +10,7 @@ static inline u16 get_random_u16(void)
 }
 #endif
 
-#if LINUX_VERSION_IS_LESS(6,2,0)
+#if LINUX_VERSION_IS_LESS(6,1,4)
 static inline u32 get_random_u32_below(u32 ceil)
 {
 	return prandom_u32_max(ceil);
-- 
2.45.1