summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-05-10 11:21:25 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2017-05-12 14:36:34 +0200
commit1b9d700c89bd1c2a3a1b303a91f8cd03fc4b727e (patch)
tree64326d40b21ac164fb8e8a8182af2ee9fdec403a /net/ipv4/tcp_output.c
parenta8cc97d8cf4a0d0cf8ce1d99a09546745b11133e (diff)
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: de6f7210e931 ("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>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions