From: Eslam Elnikety Date: Fri, 24 Jan 2020 09:31:55 +0000 (+0100) Subject: x86/microcode: use const qualifier for microcode buffer X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4345dff75a7838649c75a85aeb0e0de93853201d;p=people%2Fdwmw2%2Fxen.git x86/microcode: use const qualifier for microcode buffer The buffer holding the microcode bits should be marked as const. Signed-off-by: Eslam Elnikety Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/microcode.c b/xen/arch/x86/microcode.c index 844a33bbd6..71e881b243 100644 --- a/xen/arch/x86/microcode.c +++ b/xen/arch/x86/microcode.c @@ -86,7 +86,7 @@ static enum { * memory. */ struct ucode_mod_blob { - void *data; + const void *data; size_t size; }; @@ -749,7 +749,7 @@ int microcode_update_one(bool start_update) int __init early_microcode_update_cpu(void) { int rc = 0; - void *data = NULL; + const void *data = NULL; size_t len; struct microcode_patch *patch;