----------------------------------
When CONFIG_MICROCODE_AMD is not defined, the reload_ucode_amd function is
implemented by multiple files in the header file. As a result,
multiple definition of reload_ucode_amd. Fix this error.
Fixes: 0eeacafff0a7 ("x86/cpu/amd: Add a Zenbleed fix")
Signed-off-by: liwei <liwei728(a)huawei.com>
---
arch/x86/include/asm/microcode_amd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h
index bdecac3ae8c3..b56a1c0d5f60 100644
--- a/arch/x86/include/asm/microcode_amd.h
+++ b/arch/x86/include/asm/microcode_amd.h
@@ -54,7 +54,7 @@ static inline void __init load_ucode_amd_bsp(unsigned int family) {}
static inline void load_ucode_amd_ap(unsigned int family) {}
static inline int __init
save_microcode_in_initrd_amd(unsigned int family) { return -EINVAL; }
-void reload_ucode_amd(void) {}
+static inline void reload_ucode_amd(void) {}
static inline void amd_check_microcode(void) {}
#endif
#endif /* _ASM_X86_MICROCODE_AMD_H */
--
2.25.1