[package] uboot-envtools: upgrade to 2013.04
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 101-compat-handle-renaming-of-random32-to-prandom_u32.patch
1 From ccfc866db68eeaaeae8665baf5345debe6f26e94 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Sat, 18 May 2013 11:25:22 +0200
4 Subject: [PATCH 2/2] compat: handle renaming of random32() to prandom_u32()
5
6 496f2f93b1cc286f5a4f4f9acdc1e5314978683f renamed random32() to
7 prandom_u32(), so add an appropriate macro for older kernels.
8
9 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
10 ---
11 include/linux/compat-3.10.h | 12 ++++++++++++
12 1 file changed, 12 insertions(+)
13
14 diff --git a/include/linux/compat-3.10.h b/include/linux/compat-3.10.h
15 index 9d6e55c..1baa996 100644
16 --- a/include/linux/compat-3.10.h
17 +++ b/include/linux/compat-3.10.h
18 @@ -75,6 +75,18 @@ static inline void fb_enable_skip_vt_switch(struct fb_info *info)
19 module_driver(__pcmcia_driver, pcmcia_register_driver, \
20 pcmcia_unregister_driver)
21
22 +/**
23 + * backport of:
24 + *
25 + * commit 496f2f93b1cc286f5a4f4f9acdc1e5314978683f
26 + * Author: Akinobu Mita <akinobu.mita@gmail.com>
27 + * Date: Mon Dec 17 16:04:23 2012 -0800
28 + *
29 + * random32: rename random32 to prandom
30 + *
31 + */
32 +#define prandom_u32() random32()
33 +
34 #else /* kernel is >= 3.10 */
35 /*
36 * We'd delete this upstream ever got this, we use our
37 --
38 1.7.10.4
39