diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-26 08:35:33 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-26 09:57:37 -0400 |
commit | d7f7dc7b88ed7e98f6e503f821b60ace206a35bc (patch) | |
tree | 648eb5eca9495bf26bde9ff37617242e5763c868 | |
parent | bd20733045d5db55515442d828376a3a71d6be48 (diff) |
x86/microcode: Make a couple of symbols static
The helper function __load_ucode_amd() and pointer intel_ucode_patch do
not need to be in global scope, so make them static.
Fixes those sparse warnings:
"symbol '__load_ucode_amd' was not declared. Should it be static?"
"symbol 'intel_ucode_patch' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170622095736.11937-1-colin.king@canonical.com
-rw-r--r-- | arch/x86/kernel/cpu/microcode/amd.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/microcode/intel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index e9f4d762aa5b..21b185793c80 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c | |||
@@ -251,7 +251,7 @@ static bool get_builtin_microcode(struct cpio_data *cp, unsigned int family) | |||
251 | #endif | 251 | #endif |
252 | } | 252 | } |
253 | 253 | ||
254 | void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret) | 254 | static void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret) |
255 | { | 255 | { |
256 | struct ucode_cpu_info *uci; | 256 | struct ucode_cpu_info *uci; |
257 | struct cpio_data cp; | 257 | struct cpio_data cp; |
diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index d525a0bd7d28..59edbe9d4ccb 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c | |||
@@ -42,7 +42,7 @@ | |||
42 | static const char ucode_path[] = "kernel/x86/microcode/GenuineIntel.bin"; | 42 | static const char ucode_path[] = "kernel/x86/microcode/GenuineIntel.bin"; |
43 | 43 | ||
44 | /* Current microcode patch used in early patching on the APs. */ | 44 | /* Current microcode patch used in early patching on the APs. */ |
45 | struct microcode_intel *intel_ucode_patch; | 45 | static struct microcode_intel *intel_ucode_patch; |
46 | 46 | ||
47 | static inline bool cpu_signatures_match(unsigned int s1, unsigned int p1, | 47 | static inline bool cpu_signatures_match(unsigned int s1, unsigned int p1, |
48 | unsigned int s2, unsigned int p2) | 48 | unsigned int s2, unsigned int p2) |