linux/drivers/hv
Arnd Bergmann 92c172ae16 mshv: hide x86-specific functions on arm64
The hv_sleep_notifiers_register() and hv_machine_power_off() functions are
only called and declared on x86, but cause a warning on arm64:

drivers/hv/mshv_common.c:210:6: error: no previous prototype for 'hv_sleep_notifiers_register' [-Werror=missing-prototypes]
  210 | void hv_sleep_notifiers_register(void)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hv/mshv_common.c:224:6: error: no previous prototype for 'hv_machine_power_off' [-Werror=missing-prototypes]
  224 | void hv_machine_power_off(void)
      |      ^~~~~~~~~~~~~~~~~~~~

Hide both inside of an #ifdef block.

Fixes: f0be2600ac ("mshv: Use reboot notifier to configure sleep state")
Fixes: 615a6e7d83 ("mshv: Cleanly shutdown root partition with MSHV")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
History 2025-12-17 18:04:15 +00:00
..
channel.c Drivers: hv: fix missing kernel-doc description for 'size' in request_arr_init() 2025-11-15 06:18:16 +00:00
channel_mgmt.c Drivers: hv: Support confidential VMBus channels 2025-11-15 06:18:15 +00:00
connection.c Drivers: hv: Set the default VMBus version to 6.0 2025-11-15 06:18:15 +00:00
hv.c Drivers: hv: Export some symbols for mshv_vtl 2025-11-15 06:18:17 +00:00
hv_balloon.c hv_balloon: update the NR_BALLOON_PAGES state 2025-03-21 22:03:13 -07:00
hv_common.c Drivers: hv: Use kmalloc_array() instead of kmalloc() 2025-11-15 06:18:17 +00:00
hv_debugfs.c hv_debugfs: Make hv_debug_root static 2020-04-04 17:47:43 +01:00
hv_kvp.c hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.h 2025-01-10 00:54:21 +00:00
hv_proc.c Drivers: hv: Fix warnings for missing export.h header inclusion 2025-07-09 23:43:52 +00:00
hv_snapshot.c hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.h 2025-01-10 00:54:21 +00:00
hv_trace.c hv: add SPDX license to trace 2018-03-28 13:24:56 +02:00
hv_trace.h Drivers: hv: vmbus: Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE 2021-04-18 13:03:11 +00:00
hv_trace_balloon.h hv_balloon: trace post_status 2018-03-06 09:57:17 -08:00
hv_util.c Drivers: hv: use kmalloc_array() instead of kmalloc() 2025-12-05 23:16:49 +00:00
hv_utils_transport.c Drivers: hv: util: Cosmetic changes for hv_utils_transport.c 2025-09-08 22:10:55 +00:00
hv_utils_transport.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 280 2019-06-05 17:36:36 +02:00
hyperv_vmbus.h Drivers: hv: Export some symbols for mshv_vtl 2025-11-15 06:18:17 +00:00
Kconfig mshv: Add support for movable memory regions 2025-12-05 23:20:49 +00:00
Makefile mshv: Move region management to mshv_regions.c 2025-12-05 23:20:20 +00:00
mshv.h mshv: Use common "entry virt" APIs to do work in root before running guest 2025-09-30 22:50:48 +00:00
mshv_common.c mshv: hide x86-specific functions on arm64 2025-12-17 18:04:15 +00:00
mshv_eventfd.c mshv: adjust interrupt control structure for ARM64 2025-12-05 23:16:49 +00:00
mshv_eventfd.h Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs 2025-03-21 18:24:22 +00:00
mshv_irq.c mshv: adjust interrupt control structure for ARM64 2025-12-05 23:16:49 +00:00
mshv_portid_table.c Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs 2025-03-21 18:24:22 +00:00
mshv_regions.c mshv: Initialize local variables early upon region invalidation 2025-12-15 18:31:45 +00:00
mshv_root.h mshv: Add support for movable memory regions 2025-12-05 23:20:49 +00:00
mshv_root_hv_call.c mshv: adjust interrupt control structure for ARM64 2025-12-05 23:16:49 +00:00
mshv_root_main.c hyperv-next for v6.19 2025-12-09 06:10:17 +09:00
mshv_synic.c Drivers: hv: Rename fields for SynIC message and event pages 2025-11-15 06:18:14 +00:00
mshv_vtl.h Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
mshv_vtl_main.c Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
ring_buffer.c Drivers: hv: Allocate encrypted buffers when requested 2025-11-15 06:18:15 +00:00
vmbus_drv.c hyperv-next for v6.19 2025-12-09 06:10:17 +09:00