diff options
Diffstat (limited to 'arch/x86/kernel/x86_init.c')
| -rw-r--r-- | arch/x86/kernel/x86_init.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c index ef80d361b463..d82f4fa2f1bf 100644 --- a/arch/x86/kernel/x86_init.c +++ b/arch/x86/kernel/x86_init.c @@ -33,8 +33,8 @@ static int __init iommu_init_noop(void) { return 0; }  static void iommu_shutdown_noop(void) { }  bool __init bool_x86_init_noop(void) { return false; }  void x86_op_int_noop(int cpu) { } -static __init int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; } -static __init void get_rtc_noop(struct timespec64 *now) { } +int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; } +void get_rtc_noop(struct timespec64 *now) { }  static __initconst const struct of_device_id of_cmos_match[] = {  	{ .compatible = "motorola,mc146818" }, @@ -134,6 +134,7 @@ static void enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool  static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return false; }  static bool enc_tlb_flush_required_noop(bool enc) { return false; }  static bool enc_cache_flush_required_noop(void) { return false; } +static bool is_private_mmio_noop(u64 addr) {return false; }  struct x86_platform_ops x86_platform __ro_after_init = {  	.calibrate_cpu			= native_calibrate_cpu_early, @@ -149,6 +150,7 @@ struct x86_platform_ops x86_platform __ro_after_init = {  	.realmode_reserve		= reserve_real_mode,  	.realmode_init			= init_real_mode,  	.hyper.pin_vcpu			= x86_op_int_noop, +	.hyper.is_private_mmio		= is_private_mmio_noop,  	.guest = {  		.enc_status_change_prepare = enc_status_change_prepare_noop,  |