From 03c7d99f89e44cd0769d816f0edc827001ab8b62 Mon Sep 17 00:00:00 2001 From: Dr Amr Osman Date: Sat, 4 May 2024 04:08:44 +0300 Subject: [PATCH 1/3] 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. --- arch/x86/include/asm/timex.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/include/asm/timex.h b/arch/x86/include/asm/timex.h index 956e4145311b12..fd23c4f9831f56 100644 --- a/arch/x86/include/asm/timex.h +++ b/arch/x86/include/asm/timex.h @@ -5,6 +5,13 @@ #include #include +/* +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) && From f40d7de496f1f81560cab745353a839a31a58920 Mon Sep 17 00:00:00 2001 From: Dr Amr Osman Date: Sat, 4 May 2024 13:21:40 +0300 Subject: [PATCH 2/3] Update timex.h --- arch/x86/include/asm/timex.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/timex.h b/arch/x86/include/asm/timex.h index fd23c4f9831f56..f5c2c982a24a84 100644 --- a/arch/x86/include/asm/timex.h +++ b/arch/x86/include/asm/timex.h @@ -6,11 +6,10 @@ #include /* -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. +* Fix for vmware installer failure to build vmmon and vmnet kernel modules +* as random_get_entropy_fallback() is not found in this unit. */ -extern unsigned long random_get_entropy_fallback(void); +unsigned long random_get_entropy_fallback(void); static inline unsigned long random_get_entropy(void) { From 5c06a4ddcec90ce1c30f3a6ee56ab5a43d00bfa4 Mon Sep 17 00:00:00 2001 From: Dr Amr Osman Date: Fri, 10 May 2024 14:39:15 +0300 Subject: [PATCH 3/3] Update timex.h removing extern causes pc freeze --- arch/x86/include/asm/timex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/timex.h b/arch/x86/include/asm/timex.h index f5c2c982a24a84..8ad16858b2e8c7 100644 --- a/arch/x86/include/asm/timex.h +++ b/arch/x86/include/asm/timex.h @@ -9,7 +9,7 @@ * Fix for vmware installer failure to build vmmon and vmnet kernel modules * as random_get_entropy_fallback() is not found in this unit. */ -unsigned long random_get_entropy_fallback(void); +extern unsigned long random_get_entropy_fallback(void); static inline unsigned long random_get_entropy(void) {