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@xxxxxxxxxx> --- backport/backport-include/linux/random.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backport/backport-include/linux/random.h b/backport/backport-include/linux/random.h index dd5f377..f1cd26a 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) -- 2.1.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