mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
61d458ba8c
commit
c4f6ad4c5f
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||