aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2021-04-25 17:04:36 -0700
committerAndi Kleen <ak@linux.intel.com>2021-04-25 17:04:36 -0700
commit45fc24254df69291f9ebd597bc747df2eb61ee3a (patch)
treed1b17925747d1a435337ec29b4d89d01758c22e6
parent833356dd010e32ce7b8fae7aac329a706e960521 (diff)
downloadlinux-misc-lto-5.13-1-wip.tar.gz
x86/paravirt/lto: Export native_steal_clocklto-5.13-1-wip
Functions referrenced from paravirt assembler need to be global in gcc LTO because they could end up in a different object file. Make native_steal_clock global and __visible Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r--arch/x86/kernel/paravirt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 04cafc057bed4..286cbff6f3b8d 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -124,7 +124,7 @@ unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr,
struct static_key paravirt_steal_enabled;
struct static_key paravirt_steal_rq_enabled;
-static u64 native_steal_clock(int cpu)
+__visible u64 native_steal_clock(int cpu)
{
return 0;
}