diff options
author | 2022-04-20 16:11:35 +0200 | |
---|---|---|
committer | 2022-05-05 14:10:24 -0500 | |
commit | 18a94192e20de31e7e495d7c805c8930c42e99ef (patch) | |
tree | 83a3c120f022ad278d084495404e06f4d09dfea2 /lib/kasprintf.c | |
parent | Linux 5.18-rc1 (diff) | |
download | linux-dev-18a94192e20de31e7e495d7c805c8930c42e99ef.tar.xz linux-dev-18a94192e20de31e7e495d7c805c8930c42e99ef.zip |
PCI/PM: Define pci_restore_standard_config() only for CONFIG_PM_SLEEP
pci_restore_standard_config() was defined under CONFIG_PM but called only
by pci_pm_resume() (defined under CONFIG_SUSPEND) and pci_pm_restore()
(defined under CONFIG_HIBERNATE_CALLBACKS). A configuration with only
CONFIG_PM leads to a warning:
drivers/pci/pci-driver.c:533:12: error: ‘pci_restore_standard_config’ defined but not used [-Werror=unused-function]
CONFIG_PM_SLEEP depends on CONFIG_SUSPEND and CONFIG_HIBERNATE_CALLBACKS,
so define pci_restore_standard_config() under that instead.
Link: https://lore.kernel.org/r/20220420141135.444820-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions