diff options
author | 2017-09-06 14:58:53 +0200 | |
---|---|---|
committer | 2017-09-21 18:01:30 +0300 | |
commit | 6af1de2e4ec49635905aaed31d073a0d92c8d3bf (patch) | |
tree | 08dcb2b02d6c106398fb71c25a9e0156ce68771a /tools/perf/scripts/python/stackcollapse.py | |
parent | Merge tag 'iwlwifi-for-kalle-2017-09-15' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes (diff) | |
download | wireguard-linux-6af1de2e4ec49635905aaed31d073a0d92c8d3bf.tar.xz wireguard-linux-6af1de2e4ec49635905aaed31d073a0d92c8d3bf.zip |
ath10k: mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a compile-time
warning:
drivers/net/wireless/ath/ath10k/pci.c:3417:12: error: 'ath10k_pci_pm_resume' defined but not used [-Werror=unused-function]
static int ath10k_pci_pm_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/pci.c:3401:12: error: 'ath10k_pci_pm_suspend' defined but not used [-Werror=unused-function]
static int ath10k_pci_pm_suspend(struct device *dev)
Rather than fixing the #ifdef, this just marks both functions
as __maybe_unused, which is a more robust way to do this.
Fixes: 32faa3f0ee50 ("ath10k: add the PCI PM core suspend/resume ops")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions