diff options
| author | Arnd Bergmann <[email protected]> | 2017-02-17 15:13:44 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-03-06 13:35:22 +0000 |
| commit | b115bebc07f282067eccc06fd5aa3060ab1426da (patch) | |
| tree | dd1dcda1c95909a8035992b560dda8592c7a80fe /net/unix/garbage.c | |
| parent | gpio: mockup: return -EFAULT if copy_from_user() fails (diff) | |
| download | kernel-b115bebc07f282067eccc06fd5aa3060ab1426da.tar.gz kernel-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 <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
