x86/dmar: place the initdata annotation after the variable type
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jan 2017 16:18:10 +0000 (16:18 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 26 Jan 2017 17:26:44 +0000 (17:26 +0000)
clang cannot cope with the annotation being in the middle of the variable
declaration.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/dmar.c

index 831fe1a33e31eaeca4472daf7f69239e58c72149..4a6a819dbdde50c6faab28e2586afc4c46d40a28 100644 (file)
@@ -871,8 +871,8 @@ struct user_rmrr {
     u32 sbdf[MAX_USER_RMRR_DEV];
 };
 
-static __initdata unsigned int nr_rmrr;
-static struct __initdata user_rmrr user_rmrrs[MAX_USER_RMRR];
+static unsigned int __initdata nr_rmrr;
+static struct user_rmrr __initdata user_rmrrs[MAX_USER_RMRR];
 
 /* Macro for RMRR inclusive range formatting. */
 #define ERMRRU_FMT "[%lx-%lx]"