diff options
author | 2017-02-17 16:13:44 +0100 | |
---|---|---|
committer | 2017-03-06 14:35:22 +0100 | |
commit | b115bebc07f282067eccc06fd5aa3060ab1426da (patch) | |
tree | dd1dcda1c95909a8035992b560dda8592c7a80fe /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | gpio: mockup: return -EFAULT if copy_from_user() fails (diff) | |
download | wireguard-linux-b115bebc07f282067eccc06fd5aa3060ab1426da.tar.xz wireguard-linux-b115bebc07f282067eccc06fd5aa3060ab1426da.zip |
gpio: xgene: mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a warning about unused functions:
drivers/gpio/gpio-xgene.c:155:12: warning: 'xgene_gpio_resume' defined but not used [-Wunused-function]
static int xgene_gpio_resume(struct device *dev)
^~~~~~~~~~~~~~~~~
drivers/gpio/gpio-xgene.c:142:12: warning: 'xgene_gpio_suspend' defined but not used [-Wunused-function]
static int xgene_gpio_suspend(struct device *dev)
The warnings are harmless and can be avoided by simplifying the code and marking
the functions as __maybe_unused.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions