Skip to content

Commit d6a7e81

Browse files
bp3tk0vmehmetb0
authored andcommitted
x86/microcode/AMD: Remove unused save_microcode_in_initrd_amd() declarations
BugLink: https://bugs.launchpad.net/bugs/2106703 commit 3ef0740 upstream. Commit a7939f0 ("x86/microcode/amd: Cache builtin/initrd microcode early") renamed it to save_microcode_in_initrd() and made it static. Zap the forgotten declarations. No functional changes. Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> [nwager: drop hunk 1 due to already-applied commit: 08c73f9a91cea ("x86/microcode/AMD: Merge early_apply_microcode() into its single callsite")] Signed-off-by: Noah Wager <[email protected]> Signed-off-by: Mehmet Basaran <[email protected]>
1 parent 65d820b commit d6a7e81

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/kernel/cpu/microcode/internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,12 @@ extern bool force_minrev;
100100
#ifdef CONFIG_CPU_SUP_AMD
101101
void load_ucode_amd_bsp(struct early_load_data *ed, unsigned int family);
102102
void load_ucode_amd_ap(unsigned int family);
103-
int save_microcode_in_initrd_amd(unsigned int family);
104103
void reload_ucode_amd(unsigned int cpu);
105104
struct microcode_ops *init_amd_microcode(void);
106105
void exit_amd_microcode(void);
107106
#else /* CONFIG_CPU_SUP_AMD */
108107
static inline void load_ucode_amd_bsp(struct early_load_data *ed, unsigned int family) { }
109108
static inline void load_ucode_amd_ap(unsigned int family) { }
110-
static inline int save_microcode_in_initrd_amd(unsigned int family) { return -EINVAL; }
111109
static inline void reload_ucode_amd(unsigned int cpu) { }
112110
static inline struct microcode_ops *init_amd_microcode(void) { return NULL; }
113111
static inline void exit_amd_microcode(void) { }

0 commit comments

Comments
 (0)