[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] x86/shadow: Use standard C array designators



commit f4448bfd35b41e696709d33b469b52504aab88b7
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Sep 12 08:33:31 2016 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Sep 12 09:57:54 2016 +0100

    x86/shadow: Use standard C array designators
    
    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@xxxxxxxxxx>
    Acked-by: Tim Deegan <tim@xxxxxxx>
---
 xen/arch/x86/mm/shadow/multi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c
index 6c45338..d70b1c6 100644
--- a/xen/arch/x86/mm/shadow/multi.c
+++ b/xen/arch/x86/mm/shadow/multi.c
@@ -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
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.