diff options
| author | Linus Torvalds <[email protected]> | 2021-09-18 17:05:06 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-18 17:05:06 +0000 |
| commit | efafec27c5658ed987e720130772f8933c685e87 (patch) | |
| tree | 348829d15ec42adf596687d00edf408231e94f5e /tools/perf/ui/browsers/annotate.c | |
| parent | Merge tag 'pm-5.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff) | |
| download | kernel-efafec27c5658ed987e720130772f8933c685e87.tar.gz kernel-efafec27c5658ed987e720130772f8933c685e87.zip | |
spi: Fix tegra20 build with CONFIG_PM=n
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
