Fixes vmware failure to build modules

Fixes failure of vmware installer to build vmmon and vmnet kernel modules
as random_get_entropy_fallback() is not found in the included files from this
file.
This commit is contained in:
Dr Amr Osman 2024-05-04 04:08:44 +03:00 committed by GitHub
parent 7367539ad4
commit 03c7d99f89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,13 @@
#include <asm/processor.h>
#include <asm/tsc.h>
/*
Fixes failure of vmware installer to build vmmon and vmnet kernel modules
as random_get_entropy_fallback() is not found in the included files from this
file.
*/
extern unsigned long random_get_entropy_fallback(void);
static inline unsigned long random_get_entropy(void)
{
if (!IS_ENABLED(CONFIG_X86_TSC) &&