[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 09/21] header: add get_random_u32()
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2017-08-21 22:28:05
Message-ID: 20170821222817.17376-10-hauke () hauke-m ! de
[Download RAW message or body]
This was renamed in upstream kernel and changed from unsigned int to u32.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
backport/backport-include/linux/random.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/backport/backport-include/linux/random.h b/backport/backport-include/linux/random.h
index a9dda73b..7d817d8b 100644
--- a/backport/backport-include/linux/random.h
+++ b/backport/backport-include/linux/random.h
@@ -42,4 +42,11 @@ static inline u32 prandom_u32_max(u32 ep_ro)
}
#endif /* LINUX_VERSION_IS_LESS(3,14,0) */
+#if LINUX_VERSION_IS_LESS(4,11,0)
+static inline u32 get_random_u32(void)
+{
+ return get_random_int();
+}
+#endif
+
#endif /* __BACKPORT_RANDOM_H */
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic