]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xen/efi: Fix build with clang-5.0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Dec 2017 14:44:57 +0000 (15:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 14:44:57 +0000 (15:44 +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 56de26e9184fbe1a5c565e3bdc58af4f5e6eff0b..ca655ff003c99f48ef50fc67eb486b7566a95a27 100644 (file)
@@ -597,7 +597,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 8d295ff9afe4c7a809910e6037b69fe7c52d1d87..d30f688a5ad3fa8ba80a8ad2ca57d6fe3a9b6cdc 100644 (file)
@@ -668,7 +668,7 @@ static bool __init efi_arch_use_config_file(EFI_SYSTEM_TABLE *SystemTable)
     return true; /* 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) { }
 
 void __init efi_multiboot2(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
 {