Skip to contentSkip to conversation

mshv: Move function prototypes to the generic header

PATCH In review [email protected] 2 participants 2 messages Dec 10, 2025

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

Fixes 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")
Fixes f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")
---
 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
index eef4c3a5ba28..10037125099a 100644
@@ -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
index ecedab554c80..d4eded472db7 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

Fixes 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")
Fixes f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")