summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAugusto Mecking Caringi <augustocaringi@gmail.com>2017-01-16 14:30:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-25 11:03:42 +0100
commit7d38bf9c9d1cfb22c36b5a5692c429e50f390964 (patch)
tree697860c0934a8404fb4c356763ebd3e31f7e32a5 /tools/perf/scripts/python/export-to-postgresql.py
parentd9e7836a880cdf1d1d8584e98909a00edf4ad7de (diff)
gpio: intel-mid: Fix build warning when !CONFIG_PM
commit fbc2a294f29e726787a0f5238b27137904f26b81 upstream. The only usage of function intel_gpio_runtime_idle() is here (in the same file): static const struct dev_pm_ops intel_gpio_pm_ops = { SET_RUNTIME_PM_OPS(NULL, NULL, intel_gpio_runtime_idle) }; And when CONFIG_PM is not set, the macro SET_RUNTIME_PM_OPS expands to nothing, causing the following compiler warning: drivers/gpio/gpio-intel-mid.c:324:12: warning: ‘intel_gpio_runtime_idle’ defined but not used [-Wunused-function] static int intel_gpio_runtime_idle(struct device *dev) Fix it by annotating the function with __maybe_unused. Signed-off-by: Augusto Mecking Caringi <augustocaringi@gmail.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions