summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl-fme-pr.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-09-18 10:05:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-18 10:05:06 -0700
commitefafec27c5658ed987e720130772f8933c685e87 (patch)
tree348829d15ec42adf596687d00edf408231e94f5e /drivers/fpga/dfl-fme-pr.c
parent4357f03d6611753936e4d52fc251b54a6afb1b54 (diff)
downloadlinux-efafec27c5658ed987e720130772f8933c685e87.tar.bz2
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 <linux@roeck-us.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/fpga/dfl-fme-pr.c')
0 files changed, 0 insertions, 0 deletions