mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
mm/shadow: fix declaration of fetch_type_names
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>
This commit is contained in:
1 parent
0075bc1f02
commit
c4efa25058
1 file changed
+1
-1
@@ -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",
|
||||
|
||||