diff options
author | 2016-03-02 16:58:55 +0100 | |
---|---|---|
committer | 2016-03-03 15:12:08 +0100 | |
commit | 298cb0f19267d8f4bbd7ce74732fb24d92befbea (patch) | |
tree | 4c89ddcf52b3046947565efaadf2dfd45dbc34e1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | power_supply: 88pm860x_charger: do not pass NULL to power_supply_put (diff) | |
download | linux-dev-298cb0f19267d8f4bbd7ce74732fb24d92befbea.tar.xz linux-dev-298cb0f19267d8f4bbd7ce74732fb24d92befbea.zip |
power: ipaq-micro-battery: use __maybe_unused to hide pm functions
The ipaq micro battery driver has suspend/resume functions that
are accessed using SIMPLE_DEV_PM_OPS, which hide the reference
when CONFIG_PM_SLEEP is not set, resulting in a warning about
unused functions:
drivers/power/ipaq_micro_battery.c:284:12: error: 'micro_batt_suspend' defined but not used [-Werror=unused-function]
drivers/power/ipaq_micro_battery.c:292:12: error: 'micro_batt_resume' defined but not used [-Werror=unused-function]
This adds __maybe_unused annotations to let the compiler know
it can silently drop the function definition.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions