twx-linux/drivers/net/wireless/ti/wlcore
Arnd Bergmann 7de241f3b7 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>
2017-12-14 14:44:31 +02:00
..
acx.c wlcore, wl1251: fix spelling: "Couldnt" -> "Couldn't" and remove error on -ENOMEM 2017-12-07 15:24:32 +02:00
acx.h wlcore: fix unused function warning 2017-12-14 14:44:31 +02:00
boot.c
boot.h
cmd.c mac80211: use QoS NDP for AP probing 2017-11-27 11:23:20 +01:00
cmd.h
conf.h
debug.h
debugfs.c wlcore: use memdup_user 2017-05-18 16:41:23 +03:00
debugfs.h
event.c mac80211: Pass new RSSI level in CQM RSSI notification 2017-02-08 10:43:04 +01:00
event.h
hw_ops.h
ini.h
init.c scripts/spelling.txt: add "intialization" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
init.h
io.c
io.h
Kconfig
main.c wlcore: fix unused function warning 2017-12-14 14:44:31 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ps.c
ps.h
rx.c net: manual clean code which call skb_put_[data:zero] 2017-06-20 13:30:15 -04:00
rx.h
scan.c
scan.h
sdio.c wlcore: add missing nvs file name info for wilink8 2017-08-24 12:51:22 +03:00
spi.c wlcore: add missing nvs file name info for wilink8 2017-08-24 12:51:22 +03:00
sysfs.c wlcore: add const to bin_attribute structure 2017-08-08 14:52:35 +03:00
sysfs.h
testmode.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
testmode.h
tx.c wlcore: use boottime for fw time sync 2017-12-07 15:20:01 +02:00
tx.h
vendor_cmd.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
vendor_cmd.h
wl12xx_80211.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wlcore_i.h
wlcore.h wlcore: add missing nvs file name info for wilink8 2017-08-24 12:51:22 +03:00