aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-05-29 13:05:08 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:26:44 -0400
commita13b04af713bfa60d44cbac956ab00d3a5793de7 (patch)
tree4108f55fe572323214e4c76fc7908be3347205dd /arch
parentc6c1c94e8225c833d4c175622f8c2e70c7347a7d (diff)
x86 microcode: firmware data is const
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'arch')
-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;