* [PATCH] mshv: Move function prototypes to the generic header
@ 2025-12-10 21:46 wei.liu
2025-12-10 21:54 ` Hamza Mahfooz
0 siblings, 1 reply; 2+ messages in thread
From: wei.liu @ 2025-12-10 21:46 UTC (permalink / raw)
To: Linux on Hyper-V List
Cc: Wei Liu, Nathan Chancellor, K. Y. Srinivasan, Haiyang Zhang,
Dexuan Cui, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
H. Peter Anvin, Arnd Bergmann, Praveen K Paladugu,
Easwar Hariharan, Anatol Belski, Stanislav Kinsburskii,
Nuno Das Neves, open list:X86 ARCHITECTURE (32-BIT AND 64-BIT),
open list:GENERIC INCLUDE/ASM HEADER FILES
From: Wei Liu <wei.liu@kernel.org>
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 <nathan@kernel.org>
Fixes: 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")
Fixes: f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")
Signed-off-by: Wei Liu <wei.liu@kernel.org>
---
arch/x86/include/asm/mshyperv.h | 2 --
include/asm-generic/mshyperv.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h
index eef4c3a5ba28..10037125099a 100644
--- a/arch/x86/include/asm/mshyperv.h
+++ b/arch/x86/include/asm/mshyperv.h
@@ -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);
diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h
index ecedab554c80..d4eded472db7 100644
--- a/include/asm-generic/mshyperv.h
+++ b/include/asm-generic/mshyperv.h
@@ -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; }
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mshv: Move function prototypes to the generic header
2025-12-10 21:46 [PATCH] mshv: Move function prototypes to the generic header wei.liu
@ 2025-12-10 21:54 ` Hamza Mahfooz
0 siblings, 0 replies; 2+ messages in thread
From: Hamza Mahfooz @ 2025-12-10 21:54 UTC (permalink / raw)
To: wei.liu
Cc: Linux on Hyper-V List, Nathan Chancellor, K. Y. Srinivasan,
Haiyang Zhang, Dexuan Cui, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen,
maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT), H. Peter Anvin,
Arnd Bergmann, Praveen K Paladugu, Easwar Hariharan,
Anatol Belski, Stanislav Kinsburskii, Nuno Das Neves,
open list:X86 ARCHITECTURE (32-BIT AND 64-BIT),
open list:GENERIC INCLUDE/ASM HEADER FILES
On Wed, Dec 10, 2025 at 09:46:24PM +0000, wei.liu@kernel.org wrote:
> From: Wei Liu <wei.liu@kernel.org>
>
> 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 <nathan@kernel.org>
> Fixes: 615a6e7d83f9 ("mshv: Cleanly shutdown root partition with MSHV")
> Fixes: f0be2600ac55 ("mshv: Use reboot notifier to configure sleep state")
> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-10 21:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 21:46 [PATCH] mshv: Move function prototypes to the generic header wei.liu
2025-12-10 21:54 ` Hamza Mahfooz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox