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.coop...@citrix.com> --- CC: Jan Beulich <jbeul...@suse.com> --- xen/arch/x86/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index e105b95..d19250a 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -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; -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel