On Thu, 21 May 2026, Michael Kelley wrote:
From: Michael Kelley <[email protected]>
* Add #ifdefs around MSHV SynIC calls to hv_vmbus_exists(). When
Could as well do an empty definition of hv_vmbus_exists() if VMBUS is not
configured, no?
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 2d0b3fcb0ff8..aa11bcefddf2 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -74,6 +74,7 @@ config MSHV_ROOT
# e.g. When withdrawing memory, the hypervisor gives back 4k pages in
# no particular order, making it impossible to reassemble larger pages
depends on PAGE_SIZE_4KB
+ depends on HYPERV_VMBUS if HYPERV_VMBUS
Nice, thanks!
Reviewed-by: Jork Loeser <[email protected]>