]> 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)
commit99679fa11b7e75b372028899389b7760da7eb4a9
tree69ea7894a0f041323268b959fc60dfca052acef0
parentf1fa31454e4303792a210a590c49ed62a4f7ea53
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: 13d485de6242 ("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