mm/shadow: fix declaration of fetch_type_names
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 17 Oct 2017 10:23:53 +0000 (11:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Oct 2017 13:47:05 +0000 (14:47 +0100)
fetch_type_names usage is guarded by SHADOW_DEBUG_PROPAGATE in
SHADOW_DEBUG, fix the declaration so it's also guarded by
SHADOW_DEBUG_PROPAGATE instead of DEBUG_TRACE_DUMP.

Observed while building with clang and ubsan enabled.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/x86/mm/shadow/multi.c

index d540af11d7aed3bfd24accf6245af21e7ac8f626..915638205653ddddb0b308e9c97124c0c43dd673 100644 (file)
@@ -77,7 +77,7 @@ typedef enum {
 
 extern const char *const fetch_type_names[];
 
-#if defined(DEBUG_TRACE_DUMP) && CONFIG_PAGING_LEVELS == GUEST_PAGING_LEVELS
+#if SHADOW_DEBUG_PROPAGATE && CONFIG_PAGING_LEVELS == GUEST_PAGING_LEVELS
 const char *const fetch_type_names[] = {
     [ft_prefetch]     = "prefetch",
     [ft_demand_read]  = "demand read",