aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/microcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c
index 69729e38b78a..649dfd761f23 100644
--- a/arch/x86/kernel/microcode.c
+++ b/arch/x86/kernel/microcode.c
@@ -488,7 +488,7 @@ MODULE_ALIAS_MISCDEV(MICROCODE_MINOR);
488#define microcode_dev_exit() do { } while(0) 488#define microcode_dev_exit() do { } while(0)
489#endif 489#endif
490 490
491static long get_next_ucode_from_buffer(void **mc, void *buf, 491static long get_next_ucode_from_buffer(void **mc, const u8 *buf,
492 unsigned long size, long offset) 492 unsigned long size, long offset)
493{ 493{
494 microcode_header_t *mc_header; 494 microcode_header_t *mc_header;
@@ -522,7 +522,7 @@ static int cpu_request_microcode(int cpu)
522 char name[30]; 522 char name[30];
523 struct cpuinfo_x86 *c = &cpu_data(cpu); 523 struct cpuinfo_x86 *c = &cpu_data(cpu);
524 const struct firmware *firmware; 524 const struct firmware *firmware;
525 void *buf; 525 const u8 *buf;
526 unsigned long size; 526 unsigned long size;
527 long offset = 0; 527 long offset = 0;
528 int error; 528 int error;