summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-05-29 19:05:08 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 15:26:44 +0200
commita13b04af713bfa60d44cbac956ab00d3a5793de7 (patch)
tree4108f55fe572323214e4c76fc7908be3347205dd /arch
parentdell_rbu: firmware data is const (diff)
downloadlinux-a13b04af713bfa60d44cbac956ab00d3a5793de7.tar.xz
linux-a13b04af713bfa60d44cbac956ab00d3a5793de7.zip
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);
#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;
@@ -522,7 +522,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;