From: Andrew Cooper Date: Thu, 4 Jun 2020 17:36:57 +0000 (+0100) Subject: Fix assembler type warnings with newer binutils X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fa268bcc69c3d2091dff1c40c2245aeea1eb0268;p=people%2Fandrewcoop%2Fxen-test-framework.git Fix assembler type warnings with newer binutils GAS of at least version 2.34 complains: hypercall_page.S: Assembler messages: hypercall_page.S:24: Warning: symbol 'HYPERCALL_set_trap_table' already has its type set ... hypercall_page.S:71: Warning: symbol 'HYPERCALL_arch_7' already has its type set Signed-off-by: Andrew Cooper --- diff --git a/arch/x86/hypercall_page.S b/arch/x86/hypercall_page.S index 4787f09..b77c1b9 100644 --- a/arch/x86/hypercall_page.S +++ b/arch/x86/hypercall_page.S @@ -17,9 +17,9 @@ GLOBAL(hypercall_page) */ #define DECLARE_HYPERCALL(name) \ .globl HYPERCALL_ ## name; \ - .set HYPERCALL_ ## name, hypercall_page + __HYPERVISOR_ ## name * 32; \ .type HYPERCALL_ ## name, STT_FUNC; \ - .size HYPERCALL_ ## name, 32 + .size HYPERCALL_ ## name, 32; \ + .set HYPERCALL_ ## name, hypercall_page + __HYPERVISOR_ ## name * 32 DECLARE_HYPERCALL(set_trap_table) DECLARE_HYPERCALL(mmu_update)