From: Arnd Bergmann Date: Mon, 4 Mar 2019 20:26:05 +0000 (+0100) Subject: mailbox: tegra-hsp: mark suspend function as __maybe_unused X-Git-Tag: v5.4-rc1~1404^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a904327e98a546d9a4d570e810cc67cc5b0eab7a;p=platform%2Fkernel%2Flinux-rpi.git mailbox: tegra-hsp: mark suspend function as __maybe_unused We get a warning about this being unused when CONFIG_PM is disabled: drivers/mailbox/tegra-hsp.c:782:12: error: 'tegra_hsp_resume' defined but not used [-Werror=unused-function] Fixes: 9a63f0f40599 ("mailbox: tegra-hsp: Add suspend/resume support") Signed-off-by: Arnd Bergmann Acked-by: Thierry Reding Signed-off-by: Jassi Brar --- diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index e443f6a..11fc9fd 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -779,7 +779,7 @@ static int tegra_hsp_probe(struct platform_device *pdev) return 0; } -static int tegra_hsp_resume(struct device *dev) +static int __maybe_unused tegra_hsp_resume(struct device *dev) { struct tegra_hsp *hsp = dev_get_drvdata(dev); unsigned int i;