]> xenbits.xensource.com Git - xen.git/commitdiff
xen/efi: Fix build with clang-5.0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Dec 2017 15:24:52 +0000 (16:24 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 15:24:52 +0000 (16:24 +0100)
The clang-5.0 build is reliably failing with:

  Error: size of boot.o:.text is 0x01

which is because efi_arch_flush_dcache_area() exists as a single ret
instruction.  Mark it as __init like everything else in the files.

Spotted by Travis.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
master commit: c4f6ad4c5fd25cb0ccc0cdbe711db97e097f0407
master date: 2017-12-14 10:59:26 +0000

xen/arch/arm/efi/efi-boot.h
xen/arch/x86/efi/efi-boot.h

index 045d6ce976902b774e90e8317bf653be3b1e0373..e0811361ca079bcaec12017478ca336a0fe43fb6 100644 (file)
@@ -594,7 +594,7 @@ static void __init efi_arch_video_init(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop,
 {
 }
 
-static void efi_arch_flush_dcache_area(const void *vaddr, UINTN size)
+static void __init efi_arch_flush_dcache_area(const void *vaddr, UINTN size)
 {
     __flush_dcache_area(vaddr, size);
 }
index 11ab290f3c2937857f64fcba4f055e9d50606aab..72d662dfe0d635dea732cb6365e298c093b6a770 100644 (file)
@@ -659,7 +659,7 @@ static bool_t __init efi_arch_use_config_file(EFI_SYSTEM_TABLE *SystemTable)
     return 1; /* x86 always uses a config file */
 }
 
-static void efi_arch_flush_dcache_area(const void *vaddr, UINTN size) { }
+static void __init efi_arch_flush_dcache_area(const void *vaddr, UINTN size) { }
 
 /*
  * Local variables: