diff options
author | 2017-02-01 17:16:24 +0100 | |
---|---|---|
committer | 2017-02-06 11:06:14 +0100 | |
commit | 304c92e8fcf5863a40de60baf0576cab6b046bcf (patch) | |
tree | 794f5e6886d21b9540ca5fdfd9a5fcd93266b287 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | pinctrl: sunxi: Remove redundant A31s pinctrl driver (diff) | |
download | wireguard-linux-304c92e8fcf5863a40de60baf0576cab6b046bcf.tar.xz wireguard-linux-304c92e8fcf5863a40de60baf0576cab6b046bcf.zip |
pinctrl: samsung: mark PM functions as __maybe_unused
The rework of the suspend/resume handling uses the wrong #ifdef check, leading
to a build warning without CONFIG_PM_SLEEP:
drivers/pinctrl/samsung/pinctrl-samsung.c:1142:12: error: 'samsung_pinctrl_resume' defined but not used [-Werror=unused-function]
drivers/pinctrl/samsung/pinctrl-samsung.c:1092:12: error: 'samsung_pinctrl_suspend' defined but not used [-Werror=unused-function]
Using a __maybe_unused annotation instead of the #ifdef is a simple way to
avoid this problem class.
Fixes: 2b24efa8e5c5 ("pinctrl: samsung: Replace syscore ops with standard platform device pm_ops")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions