aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-09-30 22:36:54 +0000
committerDmitry Torokhov <[email protected]>2016-10-03 23:36:52 +0000
commit979987ded3a5ae1fb60ef751bdf185c502d70590 (patch)
tree09411aa15e0a68a4a027ee2de2cf37a8c66a9376 /scripts/gcc-plugins/sancov_plugin.c
parentInput: snvs_pwrkey - drop input_free_device call if input_register_device fails (diff)
downloadkernel-979987ded3a5ae1fb60ef751bdf185c502d70590.tar.gz
kernel-979987ded3a5ae1fb60ef751bdf185c502d70590.zip
Input: ektf2127 - mark PM functions as __maybe_unused
The newly added ektf2127 driver uses the SIMPLE_DEV_PM_OPS macro to conditionally refer to the resume/suspend functions, which causes a warning when CONFIG_PM_SLEEP is disabled: drivers/input/touchscreen/ektf2127.c:168:12: error: 'ektf2127_resume' defined but not used [-Werror=unused-function] drivers/input/touchscreen/ektf2127.c:156:12: error: 'ektf2127_suspend' defined but not used [-Werror=unused-function] We could either put these functions inside of an #ifdef or add __maybe_unused annotations. This uses the second approach, which is generally more foolproof. Fixes: 9ca5bf5029b6 ("Input: add support for Elan eKTF2127 touchscreen controller") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions