a104bbc
--- xen-4.14.0/xen/include/crypto/vmac.h.orig	2020-07-23 16:07:51.000000000 +0100
a104bbc
+++ xen-4.14.0/xen/include/crypto/vmac.h	2020-10-24 15:45:49.246467465 +0100
a104bbc
@@ -142,7 +142,7 @@
a104bbc
 
a104bbc
 #define vmac_update vhash_update
a104bbc
 
a104bbc
-void vhash_update(unsigned char m[],
a104bbc
+void vhash_update(uint8_t *m,
a104bbc
           unsigned int mbytes,
a104bbc
           vmac_ctx_t *ctx);
a104bbc
 
6554d4f
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
6554d4f
index 320e06f..618ae92 100644
6554d4f
--- a/xen/arch/x86/tboot.c
6554d4f
+++ b/xen/arch/x86/tboot.c
6554d4f
@@ -91,7 +91,7 @@ static void __init tboot_copy_memory(unsigned char *va, uint32_t size,
6554d4f
 
6554d4f
 void __init tboot_probe(void)
6554d4f
 {
6554d4f
-    tboot_shared_t *tboot_shared;
6554d4f
+    tboot_shared_t * volatile tboot_shared;
8c92353
     static const uuid_t __initconst tboot_shared_uuid = TBOOT_SHARED_UUID;
6554d4f
 
6554d4f
     /* Look for valid page-aligned address for shared page. */