From: Tobias Klauser Date: Tue, 23 Sep 2014 13:19:41 +0000 (+0200) Subject: net: bcmgenet: Fix compile warning X-Git-Tag: fixes-against-v3.18-rc2~144^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a29b3dafbb2fc46421cc2950523814c7c6c8bfb;p=pandora-kernel.git net: bcmgenet: Fix compile warning bcmgenet_wol_resume() is only used in bcmgenet_resume(), which is only defined when CONFIG_PM_SLEEP is enabled. This leads to the following compile warning when building with !CONFIG_PM_SLEEP: drivers/net/ethernet/broadcom/genet/bcmgenet.c:1967:12: warning: ‘bcmgenet_wol_resume’ defined but not used [-Wunused-function] Since bcmgenet_resume() is the only user of bcmgenet_wol_resume(), fix this by directly inlining the function there. Reported-by: Geert Uytterhoeven Signed-off-by: Tobias Klauser Acked-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed