[PATCH 2/2] compat: handle renaming of random32() to prandom_u32()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



496f2f93b1cc286f5a4f4f9acdc1e5314978683f renamed random32() to
prandom_u32(), so add an appropriate macro for older kernels.

Signed-off-by: Jonas Gorski <jogo@xxxxxxxxxxx>
---
 include/linux/compat-3.10.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/linux/compat-3.10.h b/include/linux/compat-3.10.h
index 9d6e55c..ac1dcfa 100644
--- a/include/linux/compat-3.10.h
+++ b/include/linux/compat-3.10.h
@@ -75,6 +75,20 @@ static inline void fb_enable_skip_vt_switch(struct fb_info *info)
 	module_driver(__pcmcia_driver, pcmcia_register_driver, \
 			pcmcia_unregister_driver)
 
+/**
+ * backport of:
+ *
+ * commit 496f2f93b1cc286f5a4f4f9acdc1e5314978683f
+ * Author: Akinobu Mita <akinobu.mita@xxxxxxxxx>
+ * Date:   Mon Dec 17 16:04:23 2012 -0800
+ *
+ *    random32: rename random32 to prandom
+ *
+ */
+#define prandom_u32()			random32()
+#define prandom_seed(seed)		srandom32(seed)
+#define	prandom_u32_state(state)	prandom32(state)
+
 #else /* kernel is >= 3.10 */
 /*
  * We'd delete this upstream ever got this, we use our
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux