x86/dom0: Fix build with clang
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Mar 2020 17:57:37 +0000 (17:57 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Mar 2020 18:11:51 +0000 (18:11 +0000)
commit40213cd8626bac712fa69c4978993e87b57a7d0c
tree1f589b7e0354673c591964924a40a2b42c14a9d9
parente57b00f0b7e8a932fabd8524465972f9c4d2e507
x86/dom0: Fix build with clang

find_memory() isn't marked as __init, so if it isn't fully inlined, it ends up
tripping:

  Error: size of dom0_build.o:.text is 0x0c1

Fixes: 73b47eea21 "x86/dom0: improve PVH initrd and metadata placement"
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/dom0_build.c