]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: fix build warnings without CONFIG_PM
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Dec 2017 13:45:51 +0000 (14:45 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 27 Dec 2017 10:04:06 +0000 (12:04 +0200)
commit08566d60b6afa765f734cd9109679555e5f34ce3
tree0a49dcb164b37d06b0db43cf19ce302eb7d32e59
parenta46776500c94329cf57e9d735d75b05351b38520
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: 9220c9eb0720 ("wil6210: run-time PM when interface down")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/pcie_bus.c
drivers/net/wireless/ath/wil6210/wil6210.h