diff options
author | Borislav Petkov <bp@suse.de> | 2016-10-25 05:55:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-10-25 06:28:57 -0400 |
commit | f5bdfefbf96279b4eb431606cec7a662f5d3ba88 (patch) | |
tree | a437e155b16d8d01deb86662d4a978e9facf1398 | |
parent | f61337d9841210329c177a20061f49fafff3ff76 (diff) |
x86/microcode: Remove one #ifdef clause
Move the function declaration to the other #ifdef CONFIG_MICROCODE
together with the other functions.
No functionality change.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161025095522.11964-5-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/microcode.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h index da0d81fa0b54..05e56d0968d4 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h | |||
@@ -56,12 +56,6 @@ struct ucode_cpu_info { | |||
56 | }; | 56 | }; |
57 | extern struct ucode_cpu_info ucode_cpu_info[]; | 57 | extern struct ucode_cpu_info ucode_cpu_info[]; |
58 | 58 | ||
59 | #ifdef CONFIG_MICROCODE | ||
60 | int __init microcode_init(void); | ||
61 | #else | ||
62 | static inline int __init microcode_init(void) { return 0; }; | ||
63 | #endif | ||
64 | |||
65 | #ifdef CONFIG_MICROCODE_INTEL | 59 | #ifdef CONFIG_MICROCODE_INTEL |
66 | extern struct microcode_ops * __init init_intel_microcode(void); | 60 | extern struct microcode_ops * __init init_intel_microcode(void); |
67 | #else | 61 | #else |
@@ -131,11 +125,13 @@ static inline unsigned int x86_cpuid_family(void) | |||
131 | } | 125 | } |
132 | 126 | ||
133 | #ifdef CONFIG_MICROCODE | 127 | #ifdef CONFIG_MICROCODE |
128 | int __init microcode_init(void); | ||
134 | extern void __init load_ucode_bsp(void); | 129 | extern void __init load_ucode_bsp(void); |
135 | extern void load_ucode_ap(void); | 130 | extern void load_ucode_ap(void); |
136 | void reload_early_microcode(void); | 131 | void reload_early_microcode(void); |
137 | extern bool get_builtin_firmware(struct cpio_data *cd, const char *name); | 132 | extern bool get_builtin_firmware(struct cpio_data *cd, const char *name); |
138 | #else | 133 | #else |
134 | static inline int __init microcode_init(void) { return 0; }; | ||
139 | static inline void __init load_ucode_bsp(void) { } | 135 | static inline void __init load_ucode_bsp(void) { } |
140 | static inline void load_ucode_ap(void) { } | 136 | static inline void load_ucode_ap(void) { } |
141 | static inline void reload_early_microcode(void) { } | 137 | static inline void reload_early_microcode(void) { } |