mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86: improve annotation of autogen_entrypoints[]
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>
This commit is contained in:
1 parent
e0a97098e2
commit
9fd8bbff56
1 file changed
+1
-1
@@ -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;
|
||||
|
||||