Thread (2 messages) 2 messages, 2 authors, 2021-09-13

Re: [PATCH] spi: tegra20-slink: fix "defined but not used" if !CONFIG_PM

From: Mark Brown <broonie@kernel.org>
Date: 2021-09-13 11:12:40
Also in: linux-spi

On Sun, Sep 12, 2021 at 11:25:19PM +0200, Adam Borowski wrote:
+#ifdef CONFIG_PM
 static int tegra_slink_runtime_suspend(struct device *dev);
 static int tegra_slink_runtime_resume(struct device *dev);
+#endif
ifdefs are not an idiomatic fix, use __maybe_unused if you have to.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help