e1000e: fix unused-function warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 May 2020 13:47:00 +0000 (15:47 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Jun 2020 22:42:08 +0000 (15:42 -0700)
commit880e6269fd6e60249c8f5f1b98295e9f7e56636d
treeceffa256b81e12f45db07ad336cc48f3cd65bce5
parenteb6779d4c505145f3d4331da505f4c058d02ad04
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 <arnd@arndb.de>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c