drivers/hv/mshv_common.c:210:6: warning: no previous prototype for 'hv_sleep_notifiers_register'

From: kernel test robot

Date: Tue Dec 09 2025 - 22:22:58 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c9b47175e9131118e6f221cc8fb81397d62e7c91
commit: f0be2600ac55a5845d536c56787daca50dbcb2a1 mshv: Use reboot notifier to configure sleep state
date: 4 days ago
config: arm64-randconfig-001-20251210 (https://download.01.org/0day-ci/archive/20251210/202512101158.wX3OJDwh-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251210/202512101158.wX3OJDwh-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512101158.wX3OJDwh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/hv/mshv_common.c:210:6: warning: no previous prototype for 'hv_sleep_notifiers_register' [-Wmissing-prototypes]
210 | void hv_sleep_notifiers_register(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/hv_sleep_notifiers_register +210 drivers/hv/mshv_common.c

209
> 210 void hv_sleep_notifiers_register(void)

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki