> From: Intel-wired-lan <[email protected]> On Behalf Of Arnd
> Bergmann
> Sent: Wednesday, May 27, 2020 6:47 AM
> To: Kirsher, Jeffrey T <[email protected]>; David S. Miller
> <[email protected]>; Jakub Kicinski <[email protected]>; Lifshits, Vitaly
> <[email protected]>
> Cc: Arnd Bergmann <[email protected]>; Konstantin Khlebnikov
> <[email protected]>; [email protected]; Wysocki, Rafael J
> <[email protected]>; [email protected]; intel-wired-
> [email protected]; Alexander Duyck <[email protected]>
> Subject: [Intel-wired-lan] [PATCH] [net-next] e1000e: fix unused-function
> warning
> 
> The CONFIG_PM_SLEEP #ifdef checks in this file are inconsistent,
> leading to a warning about sometimes unused function:
> 
> drivers/net/ethernet/intel/e1000e/netdev.c:137:13: error: unused function
> 'e1000e_check_me' [-Werror,-Wunused-function]
> 
> Rather than adding more #ifdefs, just remove them completely
> and mark the PM functions as __maybe_unused to let the compiler
> work it out on it own.
> 
> Fixes: e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME 
> systems")
> Signed-off-by: Arnd Bergmann <[email protected]>
> ---
>  drivers/net/ethernet/intel/e1000e/netdev.c | 16 +++++-----------
>  1 file changed, 5 insertions(+), 11 deletions(-)
> 
Tested-by: Aaron Brown <[email protected]>

Reply via email to