diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-10 10:17:38 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-31 18:33:46 +0100 |
commit | 254d152a216750f508442cc3e502130e5f539ab4 (patch) | |
tree | 4e300db1a197cc8d52de97534c5c766076fa813f /sound | |
parent | net: filter: remove unused variable and fix warning (diff) | |
download | linux-254d152a216750f508442cc3e502130e5f539ab4.tar.xz linux-254d152a216750f508442cc3e502130e5f539ab4.zip |
i40e: mark PM functions as __maybe_unused
A cleanup of the PM code left an incorrect #ifdef in place, leading
to a harmless build warning:
drivers/net/ethernet/intel/i40e/i40e_main.c:12223:12: error: 'i40e_resume' defined but not used [-Werror=unused-function]
drivers/net/ethernet/intel/i40e/i40e_main.c:12185:12: error: 'i40e_suspend' defined but not used [-Werror=unused-function]
It's easier to use __maybe_unused attributes here, since you
can't pick the wrong one.
Fixes: 0e5d3da40055 ("i40e: use newer generic PM support instead of legacy PM callbacks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions