diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-06-04 12:55:28 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-06-07 09:38:15 -0400 |
| commit | 7b179b8feba3b887be5ddd501c25d924cf44d70a (patch) | |
| tree | 598c1af33963764094ecb2658a1074c583216bb9 /arch/x86/kernel/cpu/microcode | |
| parent | ee38a90709084b1c91279cde8f783e90f85285a1 (diff) | |
x86/microcode: Correct CPU family related variable types
Change the type of variables and function prototypes to be in
alignment with what the x86_*() / __x86_*() family/model
functions return.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
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/1433436928-31903-21-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/microcode')
| -rw-r--r-- | arch/x86/kernel/cpu/microcode/amd_early.c | 5 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/microcode/core_early.c | 3 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/microcode/intel_early.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd_early.c b/arch/x86/kernel/cpu/microcode/amd_early.c index 9243cd839829..e8a215a9a345 100644 --- a/arch/x86/kernel/cpu/microcode/amd_early.c +++ b/arch/x86/kernel/cpu/microcode/amd_early.c | |||
| @@ -228,7 +228,8 @@ static void apply_ucode_in_initrd(void *ucode, size_t size, bool save_patch) | |||
| 228 | } | 228 | } |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | static bool __init load_builtin_amd_microcode(struct cpio_data *cp, int family) | 231 | static bool __init load_builtin_amd_microcode(struct cpio_data *cp, |
| 232 | unsigned int family) | ||
| 232 | { | 233 | { |
| 233 | #ifdef CONFIG_X86_64 | 234 | #ifdef CONFIG_X86_64 |
| 234 | char fw_name[36] = "amd-ucode/microcode_amd.bin"; | 235 | char fw_name[36] = "amd-ucode/microcode_amd.bin"; |
| @@ -243,7 +244,7 @@ static bool __init load_builtin_amd_microcode(struct cpio_data *cp, int family) | |||
| 243 | #endif | 244 | #endif |
| 244 | } | 245 | } |
| 245 | 246 | ||
| 246 | void __init load_ucode_amd_bsp(int family) | 247 | void __init load_ucode_amd_bsp(unsigned int family) |
| 247 | { | 248 | { |
| 248 | struct cpio_data cp; | 249 | struct cpio_data cp; |
| 249 | void **data; | 250 | void **data; |
diff --git a/arch/x86/kernel/cpu/microcode/core_early.c b/arch/x86/kernel/cpu/microcode/core_early.c index 979ca78b1561..8ebc421d6299 100644 --- a/arch/x86/kernel/cpu/microcode/core_early.c +++ b/arch/x86/kernel/cpu/microcode/core_early.c | |||
| @@ -66,7 +66,8 @@ bool get_builtin_firmware(struct cpio_data *cd, const char *name) | |||
| 66 | 66 | ||
| 67 | void __init load_ucode_bsp(void) | 67 | void __init load_ucode_bsp(void) |
| 68 | { | 68 | { |
| 69 | int vendor, family; | 69 | int vendor; |
| 70 | unsigned int family; | ||
| 70 | 71 | ||
| 71 | if (check_loader_disabled_bsp()) | 72 | if (check_loader_disabled_bsp()) |
| 72 | return; | 73 | return; |
diff --git a/arch/x86/kernel/cpu/microcode/intel_early.c b/arch/x86/kernel/cpu/microcode/intel_early.c index b4858d892592..8187b7247d1c 100644 --- a/arch/x86/kernel/cpu/microcode/intel_early.c +++ b/arch/x86/kernel/cpu/microcode/intel_early.c | |||
| @@ -524,8 +524,8 @@ EXPORT_SYMBOL_GPL(save_mc_for_early); | |||
| 524 | static bool __init load_builtin_intel_microcode(struct cpio_data *cp) | 524 | static bool __init load_builtin_intel_microcode(struct cpio_data *cp) |
| 525 | { | 525 | { |
| 526 | #ifdef CONFIG_X86_64 | 526 | #ifdef CONFIG_X86_64 |
| 527 | u32 eax = 0x00000001, ebx, ecx = 0, edx; | 527 | unsigned int eax = 0x00000001, ebx, ecx = 0, edx; |
| 528 | int family, model, stepping; | 528 | unsigned int family, model, stepping; |
| 529 | char name[30]; | 529 | char name[30]; |
| 530 | 530 | ||
| 531 | native_cpuid(&eax, &ebx, &ecx, &edx); | 531 | native_cpuid(&eax, &ebx, &ecx, &edx); |
