Files
linux/net
Arnd Bergmann faad2b874f ANDROID: rfkill: fix unused function warning
As reported by kernelci, we get a harmless warning in this driver
when CONFIG_PM is disabled:

net/rfkill/core.c:810:12: warning: 'rfkill_resume' defined but not used [-Wunused-function]
net/rfkill/core.c:800:12: warning: 'rfkill_suspend' defined but not used [-Wunused-function]

This marks the functions as __maybe_unused to remove the #ifdef, and uses
a conditional reference to the pm operations instead, which will work
in any combination.

The patch is needed for both android-common-4.9 and 4.4.

Link: https://kernelci.org/build/id/59117c2f59b5147b06b12d54/logs/
Fixes: de6f7210e9 ("ANDROID: rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down")
Cc: Nick Pelly <npelly@google.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2017-05-12 14:41:44 +02:00
..
2017-05-03 08:36:38 -07:00
2016-10-20 14:32:22 -04:00
2017-01-19 13:31:59 -08:00
2016-12-05 14:48:48 -05:00
2017-05-03 08:51:28 -07:00
2016-12-03 23:54:25 -05:00
2016-07-05 14:08:47 -07:00
2017-05-03 08:51:28 -07:00
2017-05-03 08:51:28 -07:00
2016-05-29 22:33:25 -07:00
2016-10-20 11:23:08 -04:00
2016-12-02 14:03:20 -05:00
2017-04-12 12:57:51 +02:00
2016-06-09 23:41:03 -07:00
2017-01-19 13:31:59 -08:00
2016-08-17 19:36:23 -04:00