power: ipaq-micro-battery: use __maybe_unused to hide pm functions
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Mar 2016 15:58:55 +0000 (16:58 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 3 Mar 2016 14:12:08 +0000 (15:12 +0100)
commit298cb0f19267d8f4bbd7ce74732fb24d92befbea
tree4c89ddcf52b3046947565efaadf2dfd45dbc34e1
parent9761dca68c66f6e1305f9c3d5bb5a054512050b3
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>
drivers/power/ipaq_micro_battery.c
This page took 0.02668 seconds and 5 git commands to generate.