]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 10 Oct 2017 08:17:38 +0000 (10:17 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Oct 2017 17:33:46 +0000 (10:33 -0700)
commitf3095b148ba7e591273a69872f21d770873e8f3d
tree4e300db1a197cc8d52de97534c5c766076fa813f
parentea12dc4787e5fe5ccd5d341ce5eabc1d2118ce0d
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: eed3273c9645 ("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>
drivers/net/ethernet/intel/i40e/i40e_main.c