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
This commit is contained in:
Chris
2023-06-07 14:52:58 +09:00
parent bf36963dbe
commit b6540cff16

View File

@@ -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