diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-05-11 22:11:24 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-05-11 23:46:22 +0200 |
commit | 5c009a34f1a0fe52f4f4e2dd2d5be0a94a9274e3 (patch) | |
tree | 9bf5a0d1808dc91aa9a6c6c4d0124081ae64846b | |
parent | 7d9786779072e6599783bdd1a04a2bfbc59b2ad2 (diff) |
header: add dummy add_device_randomness()
add_device_randomness() is now used by ath9k. This function was
introduced in commit a2080a67abe9 , and then backported to many stable
kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/random.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backport/backport-include/linux/random.h b/backport/backport-include/linux/random.h index dd5f377f..f1cd26ad 100644 --- a/backport/backport-include/linux/random.h +++ b/backport/backport-include/linux/random.h @@ -3,6 +3,15 @@ #include_next <linux/random.h> #include <linux/version.h> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) && LINUX_VERSION_CODE < KERNEL_VERSION(3,4,10)) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && LINUX_VERSION_CODE < KERNEL_VERSION(3,2,27)) || \ + LINUX_VERSION_CODE < KERNEL_VERSION(3,0,41) +#define add_device_randomness LINUX_BACKPORT(add_device_randomness) +static inline void add_device_randomness(const void *buf, unsigned int size) +{ +} +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0) /* backports 496f2f9 */ #define prandom_seed(_seed) srandom32(_seed) |