diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-08-14 00:50:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-14 06:45:49 +0300 |
commit | 81a8b0799632627b587af31ecd06112397e4ec36 (patch) | |
tree | 8119782d810f7775a1f79ddab15db5711dbb48c6 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c2ebc25674e5123d134e81758828084f1cc58cc3 (diff) | |
download | linux-81a8b0799632627b587af31ecd06112397e4ec36.tar.xz |
net: stmmac: mark PM functions as __maybe_unused
The newly added suspend/resume functions cause a build warning
when CONFIG_PM is disabled:
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:324:12: error: 'stmmac_pci_resume' defined but not used [-Werror=unused-function]
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:306:12: error: 'stmmac_pci_suspend' defined but not used [-Werror=unused-function]
Mark them as __maybe_unused so gcc can drop them silently.
Fixes: b7d0f08e9129 ("net: stmmac: Fix WoL for PCI-based setups")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions