WSL2-Linux-Kernel/drivers/mailbox
Nathan Chancellor 79f9fbe303 mailbox: qcom-ipcc: Fix -Wunused-function with CONFIG_PM_SLEEP=n
When CONFIG_PM_SLEEP is not set, there is a warning that
qcom_ipcc_pm_resume() is unused:

  drivers/mailbox/qcom-ipcc.c:258:12: error: 'qcom_ipcc_pm_resume' defined but not used [-Werror=unused-function]
    258 | static int qcom_ipcc_pm_resume(struct device *dev)
        |            ^~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

Commit 1a3c7bb088 ("PM: core: Add new *_PM_OPS macros, deprecate old
ones") reworked the PM_OPS macros to avoid this problem. Use
NOIRQ_SYSTEM_SLEEP_PM_OPS directly so that qcom_ipcc_pm_resume() always
appears to be used to the compiler, even though it will be dead code
eliminated in the !CONFIG_PM_SLEEP case.

Fixes: c25f778997 ("mailbox: qcom-ipcc: Log the pending interrupt during resume")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
2022-05-24 08:08:24 -05:00
..
Kconfig mailbox: mediatek: add support for adsp mailbox controller 2022-03-12 19:24:57 -06:00
Makefile mailbox: mediatek: add support for adsp mailbox controller 2022-03-12 19:24:57 -06:00
apple-mailbox.c
arm_mhu.c
arm_mhu_db.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
arm_mhuv2.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
armada-37xx-rwtm-mailbox.c
bcm-flexrm-mailbox.c Rework of the MSI interrupt infrastructure: 2022-01-13 09:05:29 -08:00
bcm-pdc-mailbox.c
bcm2835-mailbox.c
hi3660-mailbox.c mailbox: hi3660: convert struct comments to kernel-doc notation 2022-01-11 23:47:32 -06:00
hi6220-mailbox.c
imx-mailbox.c mailbox:imx: using pm_runtime_resume_and_get 2022-05-21 11:41:30 -05:00
mailbox-altera.c
mailbox-mpfs.c mailbox: change mailbox-mpfs compatible string 2022-01-11 23:47:33 -06:00
mailbox-sti.c
mailbox-test.c
mailbox-xgene-slimpro.c
mailbox.c mailbox: forward the hrtimer if not queued and under a lock 2022-05-23 14:45:24 -05:00
mailbox.h
mtk-adsp-mailbox.c mailbox: mediatek: support mt8186 adsp mailbox 2022-05-21 11:41:30 -05:00
mtk-cmdq-mailbox.c mailbox: mtk: add missing of_node_put before return 2022-01-11 23:47:33 -06:00
omap-mailbox.c mailbox: omap: using pm_runtime_resume_and_get to simplify the code 2022-05-21 11:41:30 -05:00
pcc.c mailbox: pcc: Fix an invalid-load caught by the address sanitizer 2022-05-21 11:41:30 -05:00
pl320-ipc.c
platform_mhu.c
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: Add compatible for MSM8976 SoC 2022-03-12 19:22:11 -06:00
qcom-ipcc.c mailbox: qcom-ipcc: Fix -Wunused-function with CONFIG_PM_SLEEP=n 2022-05-24 08:08:24 -05:00
rockchip-mailbox.c
sprd-mailbox.c
stm32-ipcc.c
sun6i-msgbox.c
tegra-hsp.c mailbox: tegra-hsp: Add 128-bit shared mailbox support 2022-05-21 11:41:30 -05:00
ti-msgmgr.c mailbox: ti-msgmgr: Operate mailbox in polled mode during system suspend 2022-03-12 19:33:30 -06:00
zynqmp-ipi-mailbox.c mailbox: zynq: add missing of_node_put before return 2022-01-11 23:47:32 -06:00