]> xenbits.xensource.com Git - people/aperard/xtf.git/commitdiff
Fix assembler type warnings with newer binutils
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Jun 2020 17:36:57 +0000 (18:36 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Jun 2020 19:33:08 +0000 (20:33 +0100)
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 <andrew.cooper3@citrix.com>
arch/x86/hypercall_page.S

index 4787f096c831506359c64b17def9e8e7102a9858..b77c1b95e9623341093e9319d7d5fdba2286c3a6 100644 (file)
@@ -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)