--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/desc.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/x86/include/asm/desc.h 2021-11-10 13:23:10.000000000 +0000 @@ -62,7 +62,7 @@ #else static inline void pack_gate(gate_desc *gate, unsigned char type, - unsigned long base, unsigned dpl, unsigned flags, + unsigned long base, unsigned dpl, unsigned flags __attribute__((unused)), unsigned short seg) { gate->a = (seg << 16) | (base & 0xffff); @@ -101,11 +101,11 @@ #define write_idt_entry(dt, entry, g) \ native_write_idt_entry(dt, entry, g) -static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) +static inline void paravirt_alloc_ldt(struct desc_struct *ldt __attribute__((unused)), unsigned entries __attribute__((unused))) { } -static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) +static inline void paravirt_free_ldt(struct desc_struct *ldt __attribute__((unused)), unsigned entries __attribute__((unused))) { } #endif /* CONFIG_PARAVIRT */