aboutsummaryrefslogtreecommitdiff
path: root/.cocciconfig
diff options
context:
space:
mode:
authorArnd Bergmann2020-12-03 23:29:16 +0100
committerUlf Hansson2020-12-04 15:35:54 +0100
commitc0d638a03bc5dfdb08fb95d0a79ecada25f40da8 (patch)
tree51da767022619b9dfd5e3e297c7067283feeb8b7 /.cocciconfig
parent6246d7c9d15aaff0bc3863f67900c6a6e6be921b (diff)
mmc: mediatek: mark PM functions as __maybe_unused
The #ifdef check for the suspend/resume functions is wrong: drivers/mmc/host/mtk-sd.c:2765:12: error: unused function 'msdc_suspend' [-Werror,-Wunused-function] static int msdc_suspend(struct device *dev) drivers/mmc/host/mtk-sd.c:2779:12: error: unused function 'msdc_resume' [-Werror,-Wunused-function] static int msdc_resume(struct device *dev) Remove the #ifdef and mark all four as __maybe_unused to aovid the problem. Fixes: c0a2074ac575 ("mmc: mediatek: Fix system suspend/resume support for CQHCI") Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20201203222922.1067522-1-arnd@kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions