summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
diff options
context:
space:
mode:
authorArnd Bergmann2018-08-14 00:10:34 +0200
committerDavid S. Miller2018-08-14 05:45:49 +0200
commitcf87615d15f37182b2a3a4cd722288d3d5956900 (patch)
tree69ea7894a0f041323268b959fc60dfca052acef0 /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
parentnet: stmmac: mark PM functions as __maybe_unused (diff)
downloadkernel-qcow2-linux-cf87615d15f37182b2a3a4cd722288d3d5956900.tar.gz
kernel-qcow2-linux-cf87615d15f37182b2a3a4cd722288d3d5956900.tar.xz
kernel-qcow2-linux-cf87615d15f37182b2a3a4cd722288d3d5956900.zip
net: systemport: fix unused function warning
The only remaining caller of this function is inside of an #ifdef after another caller got removed. This causes a harmless warning in some configurations: drivers/net/ethernet/broadcom/bcmsysport.c:1068:13: error: 'bcm_sysport_resume_from_wol' defined but not used [-Werror=unused-function] Removing the #ifdef around the PM functions simplifies the code and avoids the problem but letting the compiler drop the unused functions silently. Fixes: 9e85e22713d6 ("net: systemport: Do not re-configure upon WoL interrupt") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c')
0 files changed, 0 insertions, 0 deletions