diff mbox series

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

Message ID 20240524190907.c339801c1af2.I04c1d4108a0c85e5fd474af0fd1b3bc0f4127ba4@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:08 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

This got backported to 6.1.4.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/linux/random.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);