diff options
author | Borislav Petkov <bp@suse.de> | 2016-06-06 11:10:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-08 05:04:20 -0400 |
commit | a13004a2449c56a83d5816e81d850ea92b6837c2 (patch) | |
tree | 33510d668c56d79c70732c8a34231c04c8d13fc6 | |
parent | 0c5fa827f1130d05858f158022c21e9e7e5cff92 (diff) |
x86/microcode/AMD: Make amd_ucode_patch[] static
It is used only in amd.c now.
No functionality change.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
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: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1465225850-7352-9-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/microcode_amd.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/microcode/amd.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h index adfc847a395e..15eb75484cc0 100644 --- a/arch/x86/include/asm/microcode_amd.h +++ b/arch/x86/include/asm/microcode_amd.h | |||
@@ -62,7 +62,6 @@ extern int apply_microcode_amd(int cpu); | |||
62 | extern enum ucode_state load_microcode_amd(int cpu, u8 family, const u8 *data, size_t size); | 62 | extern enum ucode_state load_microcode_amd(int cpu, u8 family, const u8 *data, size_t size); |
63 | 63 | ||
64 | #define PATCH_MAX_SIZE PAGE_SIZE | 64 | #define PATCH_MAX_SIZE PAGE_SIZE |
65 | extern u8 amd_ucode_patch[PATCH_MAX_SIZE]; | ||
66 | 65 | ||
67 | #ifdef CONFIG_MICROCODE_AMD | 66 | #ifdef CONFIG_MICROCODE_AMD |
68 | extern void __init load_ucode_amd_bsp(unsigned int family); | 67 | extern void __init load_ucode_amd_bsp(unsigned int family); |
diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index b1d1e345f5f5..27a0228c9cae 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c | |||
@@ -56,7 +56,7 @@ static u8 *container; | |||
56 | static size_t container_size; | 56 | static size_t container_size; |
57 | 57 | ||
58 | static u32 ucode_new_rev; | 58 | static u32 ucode_new_rev; |
59 | u8 amd_ucode_patch[PATCH_MAX_SIZE]; | 59 | static u8 amd_ucode_patch[PATCH_MAX_SIZE]; |
60 | static u16 this_equiv_id; | 60 | static u16 this_equiv_id; |
61 | 61 | ||
62 | static struct cpio_data ucode_cpio; | 62 | static struct cpio_data ucode_cpio; |