diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-12-11 12:46:29 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-12-14 14:44:31 +0200 |
commit | 7de241f3b705396fe21f45d38ba1247c522aae81 (patch) | |
tree | 2bddcca4599347d5623c545f0c6b7f33a90259d2 /Documentation/connector | |
parent | e4779162f7377baa9fb9a044555ecaae22c3f125 (diff) | |
download | linux-7de241f3b705396fe21f45d38ba1247c522aae81.tar.bz2 |
wlcore: fix unused function warning
The newly added wlcore_fw_sleep function is called conditionally,
which causes a warning without CONFIG_PM:
drivers/net/wireless/ti/wlcore/main.c:981:12: error: 'wlcore_fw_sleep' defined but not used [-Werror=unused-function]
Instead of trying to keep track of what should be in the #ifdef and what
should not, it's easier to mark the top-level suspend/resume functions
as __maybe_unused so the compiler can silently drop all the unused code.
Fixes: 37bf241b8e7b ("wlcore: allow elp during wowlan suspend")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/connector')
0 files changed, 0 insertions, 0 deletions