Commit 9a486485 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Todd Kjos
Browse files

ANDROID: rfkill: fix unused function warning

As reported by kernelci, a number of kernel configurations fail to build

ERROR: "rfkill_resume_polling" [net/wireless/cfg80211.ko] undefined!

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.

A similar patch is needed for android-4.4 and 4.9, this one is for 3.18.

Link: https://kernelci.org/build/id/591063b959b514cac1b12d51/logs/


Fixes: 1fb6edeb ("ANDROID: rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down")
Cc: Nick Pelly <npelly@google.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 36afa745
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment