]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86: improve annotation of autogen_entrypoints[]
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 10 Feb 2016 13:50:59 +0000 (14:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Feb 2016 13:50:59 +0000 (14:50 +0100)
Clang complains that the __used attribute is not applicable to an extern.  In
this case, the only relevent attribute is that the data is constant.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c

index e105b953c6319430a530bac5d938603df89f4af9..d19250a907167ed68d16241ed83894adb6b76583 100644 (file)
@@ -3689,7 +3689,7 @@ void __init init_idt_traps(void)
     this_cpu(compat_gdt_table) = boot_cpu_compat_gdt_table;
 }
 
-extern void (*__initconst autogen_entrypoints[NR_VECTORS])(void);
+extern void (*const autogen_entrypoints[NR_VECTORS])(void);
 void __init trap_init(void)
 {
     unsigned int vector;