Commit a13b04af authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by David Woodhouse

x86 microcode: firmware data is const

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c6c1c94e
...@@ -488,7 +488,7 @@ MODULE_ALIAS_MISCDEV(MICROCODE_MINOR); ...@@ -488,7 +488,7 @@ MODULE_ALIAS_MISCDEV(MICROCODE_MINOR);
#define microcode_dev_exit() do { } while(0) #define microcode_dev_exit() do { } while(0)
#endif #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) unsigned long size, long offset)
{ {
microcode_header_t *mc_header; microcode_header_t *mc_header;
...@@ -522,7 +522,7 @@ static int cpu_request_microcode(int cpu) ...@@ -522,7 +522,7 @@ static int cpu_request_microcode(int cpu)
char name[30]; char name[30];
struct cpuinfo_x86 *c = &cpu_data(cpu); struct cpuinfo_x86 *c = &cpu_data(cpu);
const struct firmware *firmware; const struct firmware *firmware;
void *buf; const u8 *buf;
unsigned long size; unsigned long size;
long offset = 0; long offset = 0;
int error; int error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment