From b6540cff1602fbed26b4bb6ed07763557d9de512 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 7 Jun 2023 14:52:58 +0900 Subject: [PATCH] ODROID: Remove get_random_bytes_wait function. commit contains "get_random_bytes_wait function" "random: add get_random_{bytes,u32,u64,int,long,once}_wait family" Remove this function in wireguard. Change-Id: Ie90187a4df08d24fef06dedb3956f2d42abcd681 --- net/wireguard/compat/compat.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h index d5386a422839..a549927ddeeb 100644 --- a/net/wireguard/compat/compat.h +++ b/net/wireguard/compat/compat.h @@ -355,17 +355,6 @@ static inline bool rng_is_initialized(void) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0) -static inline int get_random_bytes_wait(void *buf, int nbytes) -{ - int ret = wait_for_random_bytes(); - if (unlikely(ret)) - return ret; - get_random_bytes(buf, nbytes); - return 0; -} -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0) && !defined(ISRHEL7) #define system_power_efficient_wq system_unbound_wq #endif