summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/microcode/amd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-26 14:35:33 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-26 15:57:37 +0200
commitd7f7dc7b88ed7e98f6e503f821b60ace206a35bc (patch)
tree648eb5eca9495bf26bde9ff37617242e5763c868 /arch/x86/kernel/cpu/microcode/amd.c
parentbd20733045d5db55515442d828376a3a71d6be48 (diff)
downloadtalos-obmc-linux-d7f7dc7b88ed7e98f6e503f821b60ace206a35bc.tar.gz
talos-obmc-linux-d7f7dc7b88ed7e98f6e503f821b60ace206a35bc.zip
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
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/amd.c')
-rw-r--r--arch/x86/kernel/cpu/microcode/amd.c2
1 files changed, 1 insertions, 1 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)
#endif
}
-void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret)
+static void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret)
{
struct ucode_cpu_info *uci;
struct cpio_data cp;
OpenPOWER on IntegriCloud