xen/efi: Fix build with clang-5.0

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>
This commit is contained in:
Andrew Cooper committed 2017-12-14 10:59:26 +00:00
1 parent 61d458ba8c
commit c4f6ad4c5f
2 files changed
+2 -2

No files matched your search

+1 -1
View 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);
}
+1 -1
View 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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.