mshv: Move function prototypes to the generic header
Subsystems (4)
[email protected]
maintainerPATCH 1/1 mshv: Move function prototypes to the generic header
From: Wei Liu <[email protected]>
The same code is built on both x86 and ARM64 architectures. This fixes two missing prototype warnings when building on ARM64.
This only eliminates the warnings. Making things work on ARM64 requires more work.
Reported-by Nathan Chancellor <[email protected]>
Fixes 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")
Fixes f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")
Signed-off-by Wei Liu <[email protected]>
--- arch/x86/include/asm/mshyperv.h | 2 -- include/asm-generic/mshyperv.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/mshyperv.h +0 -2
@@ -177,8 +177,6 @@ int hyperv_flush_guest_mapping_range(u64 as,int hyperv_fill_flush_guest_mapping_list (struct hv_guest_mapping_flush_list *flush,u64 start_gfn,u64 end_gfn); -void hv_sleep_notifiers_register (void ); -void hv_machine_power_off (void );#ifdef CONFIG_X86_64 void hv_apic_init (void );
include/asm-generic/mshyperv.h +2 -0
@@ -316,6 +316,8 @@ void hv_para_set_synic_register(unsigned int reg, u64 val);void hyperv_cleanup (void );bool hv_query_ext_cap (u64 cap_query);void hv_setup_dma_ops (struct device *dev,bool coherent); +void hv_sleep_notifiers_register (void ); +void hv_machine_power_off (void );#else /* CONFIG_HYPERV */ static inline void hv_identify_partition_type (void ) {}static inline bool hv_is_hyperv_initialized (void ) {return false; }
Signature · 1 line
2.43.0
Quoted 5 lines · On Wed, Dec 10, 2025 at 09:46:24PM +0000, [email protected] wrote:
From: Wei Liu <[email protected]>
The same code is built on both x86 and ARM64 architectures. This fixes two missing prototype warnings when building on ARM64.
Quoted 7 lines
This only eliminates the warnings. Making things work on ARM64 requires more work.
Reported-by Nathan Chancellor <[email protected]>Fixes 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")Fixes f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")Signed-off-by Wei Liu <[email protected]>
Reviewed-by Hamza Mahfooz <[email protected]>