x86/shadow: Use standard C array designators
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Sep 2016 08:33:31 +0000 (08:33 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Sep 2016 08:57:54 +0000 (09:57 +0100)
Clang identifies:

  multi.c:82:23: error: use of GNU 'missing =' extension in
  designator [-Werror,-Wgnu-designator]
      [ft_prefetch]     "prefetch",

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c

index 6c45338636435b6878b76c28ec70c4febef869b2..d70b1c66b633428ad2fad8375178902889cfa916 100644 (file)
@@ -79,9 +79,9 @@ extern const char *const fetch_type_names[];
 
 #if defined(DEBUG_TRACE_DUMP) && CONFIG_PAGING_LEVELS == GUEST_PAGING_LEVELS
 const char *const fetch_type_names[] = {
-    [ft_prefetch]     "prefetch",
-    [ft_demand_read]  "demand read",
-    [ft_demand_write] "demand write",
+    [ft_prefetch]     "prefetch",
+    [ft_demand_read]  "demand read",
+    [ft_demand_write] "demand write",
 };
 #endif