]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: fix unused function warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Aug 2018 22:10:34 +0000 (00:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 03:45:49 +0000 (20:45 -0700)
commit2cb433919e082c3bebb6abf15c0241aaf3e06dab
tree69ea7894a0f041323268b959fc60dfca052acef0
parente54c4d8d7a96ba0615a49db2126e646feec961df
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: d153e37e43d9 ("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>
drivers/net/ethernet/broadcom/bcmsysport.c