]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP
authorDexuan Cui <decui@microsoft.com>
Thu, 19 Sep 2019 21:46:12 +0000 (21:46 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 1 Oct 2019 18:49:45 +0000 (14:49 -0400)
commit16705ed861221d6210e39ef8706a6c77b14c2cb2
treed7828ca795b63c2e8f72260d58fc7b27681682da
parent59c1f5e9e89e7906d5de772aab510339e21e526f
Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP

If CONFIG_PM_SLEEP is not set, we can comment out these functions to avoid
the below warnings:

drivers/hv/vmbus_drv.c:2208:12: warning: ‘vmbus_bus_resume’ defined but not used [-Wunused-function]
drivers/hv/vmbus_drv.c:2128:12: warning: ‘vmbus_bus_suspend’ defined but not used [-Wunused-function]
drivers/hv/vmbus_drv.c:937:12: warning: ‘vmbus_resume’ defined but not used [-Wunused-function]
drivers/hv/vmbus_drv.c:918:12: warning: ‘vmbus_suspend’ defined but not used [-Wunused-function]

Fixes: b2c76364a3f3 ("Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation")
Fixes: 78e85748f6f1 ("Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/vmbus_drv.c