Files
linux/drivers/spi
Linus Torvalds 5f35f78ead spi: Fix tegra20 build with CONFIG_PM=n
[ Upstream commit efafec27c5 ]

Without CONFIG_PM enabled, the SET_RUNTIME_PM_OPS() macro ends up being
empty, and the only use of tegra_slink_runtime_{resume,suspend} goes
away, resulting in

  drivers/spi/spi-tegra20-slink.c:1200:12: error: ‘tegra_slink_runtime_resume’ defined but not used [-Werror=unused-function]
   1200 | static int tegra_slink_runtime_resume(struct device *dev)
        |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
  drivers/spi/spi-tegra20-slink.c:1188:12: error: ‘tegra_slink_runtime_suspend’ defined but not used [-Werror=unused-function]
   1188 | static int tegra_slink_runtime_suspend(struct device *dev)
        |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

mark the functions __maybe_unused to make the build happy.

This hits the alpha allmodconfig build (and others).

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-30 10:13:07 +02:00
..
2021-06-04 15:27:11 +01:00
2021-07-20 13:34:05 +01:00
2020-10-08 23:00:06 +01:00
2020-07-17 16:38:47 +01:00
2021-08-02 12:20:20 +01:00
2021-09-30 10:13:00 +02:00
2021-05-11 15:42:47 +01:00