diff options
| author | Arnd Bergmann <[email protected]> | 2017-10-10 10:17:38 +0200 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-10-31 10:33:46 -0700 |
| commit | 254d152a216750f508442cc3e502130e5f539ab4 (patch) | |
| tree | 4e300db1a197cc8d52de97534c5c766076fa813f /tools/perf/scripts/python/stackcollapse.py | |
| parent | aa2bc739ef4a181a7589eb009be96a870cc1788f (diff) | |
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 <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Acked-by: Jacob Keller <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions