Commit 532ed374 authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Borislav Petkov

x86, microcode, intel: Rename apply_microcode and declare it static

Rename apply_microcode() in microcode/intel.c to
apply_microcode_intel(), and declare it as static. This is a cosmetic
fix to silence a warning issued by sparse.
Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Link: http://lkml.kernel.org/r/1406146251-8540-1-git-send-email-hmh@hmh.eng.brSigned-off-by: default avatarBorislav Petkov <bp@suse.de>
parent f99b45c3
...@@ -127,7 +127,7 @@ static int get_matching_mc(struct microcode_intel *mc_intel, int cpu) ...@@ -127,7 +127,7 @@ static int get_matching_mc(struct microcode_intel *mc_intel, int cpu)
return get_matching_microcode(csig, cpf, mc_intel, crev); return get_matching_microcode(csig, cpf, mc_intel, crev);
} }
int apply_microcode(int cpu) static int apply_microcode_intel(int cpu)
{ {
struct microcode_intel *mc_intel; struct microcode_intel *mc_intel;
struct ucode_cpu_info *uci; struct ucode_cpu_info *uci;
...@@ -314,7 +314,7 @@ static struct microcode_ops microcode_intel_ops = { ...@@ -314,7 +314,7 @@ static struct microcode_ops microcode_intel_ops = {
.request_microcode_user = request_microcode_user, .request_microcode_user = request_microcode_user,
.request_microcode_fw = request_microcode_fw, .request_microcode_fw = request_microcode_fw,
.collect_cpu_info = collect_cpu_info, .collect_cpu_info = collect_cpu_info,
.apply_microcode = apply_microcode, .apply_microcode = apply_microcode_intel,
.microcode_fini_cpu = microcode_fini_cpu, .microcode_fini_cpu = microcode_fini_cpu,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment