]> 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)
commit552feb30cd1d27ff2b8f072d749745b856e0225b
treeec9fbb50f1d1598bf2fdaffbd7c87729c668bbcb
parenta8a0e8bb82e4a43b359f48d62fb3259c21a76349
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