X-Git-Url: https://nv-tegra.nvidia.com/r/gitweb?p=linux-2.6.git;a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Fmicrocode.c;h=56b933119a04f5551094ce08feeb12bf2642aa6b;hp=f47ba8156f3e84cb7a48b2ee527c84b48272ae0c;hb=5a86102248592e178a9023359ccf7f0e489d8e35;hpb=85082fd7cbe3173198aac0eb5e85ab1edcc6352c diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c index f47ba8156f3..56b933119a0 100644 --- a/arch/x86/kernel/microcode.c +++ b/arch/x86/kernel/microcode.c @@ -491,7 +491,7 @@ MODULE_ALIAS_MISCDEV(MICROCODE_MINOR); #define microcode_dev_exit() do { } while(0) #endif -static long get_next_ucode_from_buffer(void **mc, void *buf, +static long get_next_ucode_from_buffer(void **mc, const u8 *buf, unsigned long size, long offset) { microcode_header_t *mc_header; @@ -525,7 +525,7 @@ static int cpu_request_microcode(int cpu) char name[30]; struct cpuinfo_x86 *c = &cpu_data(cpu); const struct firmware *firmware; - void *buf; + const u8 *buf; unsigned long size; long offset = 0; int error;