OpenCloudOS-Kernel/drivers/net/wireless/ath/wil6210
Arnd Bergmann 203dab8395 wil6210: fix build warnings without CONFIG_PM
The #ifdef checks are hard to get right, in this case some functions
should have been left inside a CONFIG_PM_SLEEP check as seen by this
message:

drivers/net/wireless/ath/wil6210/pcie_bus.c:489:12: error: 'wil6210_pm_resume' defined but not used [-Werror=unused-function]
drivers/net/wireless/ath/wil6210/pcie_bus.c:484:12: error: 'wil6210_pm_suspend' defined but not used [-Werror=unused-function]

Using an __maybe_unused is easier here, so I'm replacing all the
other #ifdef in this file as well for consistency.

Fixes: 94162666cd ("wil6210: run-time PM when interface down")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-12-27 12:04:06 +02:00
..
Kconfig wil6210: make debugfs compilation optional 2017-08-31 15:19:31 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
boot_loader.h wil6210: report boot loader error 2015-08-06 09:44:02 +03:00
cfg80211.c wil6210: missing length check in wil_cfg80211_mgmt_tx 2017-12-02 16:18:50 +02:00
debug.c wil6210: align wil log functions to wil_dbg_ratelimited implementation 2016-05-28 11:19:29 +03:00
debugfs.c wil6210: update statistics for suspend 2017-12-02 16:19:17 +02:00
ethtool.c wil6210: run-time PM when interface down 2017-12-02 16:18:01 +02:00
fw.c wil6210: support loading dedicated image for sparrow-plus devices 2017-01-27 19:49:26 +02:00
fw.h wil6210: extract firmware version from file header 2016-08-31 10:31:16 +03:00
fw_inc.c wil6210: add block size checks during FW load 2017-12-02 16:18:35 +02:00
interrupt.c wil6210: fix length check in __wmi_send 2017-12-02 16:18:28 +02:00
main.c wil6210: remove suspend time statistics 2017-12-02 16:19:10 +02:00
netdev.c wil6210: run-time PM when interface down 2017-12-02 16:18:01 +02:00
p2p.c ath: Convert timers to use timer_setup() 2017-10-27 16:54:19 +03:00
pcie_bus.c wil6210: fix build warnings without CONFIG_PM 2017-12-27 12:04:06 +02:00
pm.c wil6210: update statistics for suspend 2017-12-02 16:19:17 +02:00
pmc.c wil6210: fix array out of bounds access in pmc 2017-04-13 15:46:21 +03:00
pmc.h wil6210: Add pmc debug mechanism memory management 2015-05-04 20:55:43 +03:00
rx_reorder.c wil6210: support 8KB RX buffers 2017-04-13 15:45:48 +03:00
trace.c wil6210: trace support 2013-05-22 15:08:27 -04:00
trace.h wil6210: switch to generated wmi.h 2016-03-07 11:43:20 +02:00
txrx.c wil6210: move vring_idle_trsh definition to wil6210_priv 2017-08-08 21:44:25 +03:00
txrx.h wil6210: replay attack detection 2016-03-07 11:43:19 +02:00
wil6210.h wil6210: fix build warnings without CONFIG_PM 2017-12-27 12:04:06 +02:00
wil_crash_dump.c wil6210: remove __func__ from debug printouts 2017-01-27 19:49:30 +02:00
wil_platform.c wil6210: support for platform specific crash recovery 2016-01-07 15:00:44 +02:00
wil_platform.h wil6210: add support for PCIe D3hot in system suspend 2017-06-21 16:18:47 +03:00
wmi.c wil6210: get suspend reject reason and resume triggers from FW 2017-12-02 16:18:56 +02:00
wmi.h wil6210: get suspend reject reason and resume triggers from FW 2017-12-02 16:18:56 +02:00