]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hyperv: Hide pv_ops access for CONFIG_PARAVIRT=n
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Wed, 28 Aug 2019 08:07:47 +0000 (16:07 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 10:25:06 +0000 (12:25 +0200)
commite9dc0229b91c865105d05ec16e243bed2f82ebbd
treeec9fbb50f1d1598bf2fdaffbd7c87729c668bbcb
parent61c966701c1aabb737ca2efea9bf8297a9ba46a3
x86/hyperv: Hide pv_ops access for CONFIG_PARAVIRT=n

hv_setup_sched_clock() references pv_ops which is only available when
CONFIG_PARAVIRT=Y.

Wrap it into a #ifdef

Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190828080747.204419-1-Tianyu.Lan@microsoft.com
arch/x86/kernel/cpu/mshyperv.c