From 0a29b3dafbb2fc46421cc2950523814c7c6c8bfb Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 23 Sep 2014 15:19:41 +0200 Subject: [PATCH] net: bcmgenet: Fix compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed