summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-08-26 15:29:35 (GMT)
committerJonathan Cameron <jic23@kernel.org>2016-08-29 18:54:08 (GMT)
commit2e1f44d8a7724e889f1a4f211aad13320cb80f1f (patch)
tree2358d5be881e3b95ab431a1afda525a4604cab97 /scripts/gcc-plugins
parent943bbe743ce4c2846c41812186411841b0c9d7a1 (diff)
downloadlinux-2e1f44d8a7724e889f1a4f211aad13320cb80f1f.tar.xz
iio: hid-sensors: avoid unused function warning
A small rework of the PM code in this driver introduced a harmless warning when CONFIG_PM_SLEEP is not set: drivers/iio/common/hid-sensors/hid-sensor-trigger.c:212:12: error: 'hid_sensor_resume' defined but not used [-Werror=unused-function] This removes the #ifdef and instead marks all three PM functions as __maybe_unused, which covers all possible cases and is harder to get wrong. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 7f6cf7414538 ("iio: hid-sensors: use asynchronous resume") Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions