Commit 6b69f8a
committed
net: intel: implement modern PM ops declarations
Author: Jesse Brandeburg <jesse.brandeburg@intel.com>
Switch the Intel networking drivers to use the new power management ops
declaration formats and macros, which allows us to drop __maybe_unused,
as well as a bunch of ifdef checking CONFIG_PM.
This is safe to do because the compiler drops the unused functions,
verified by checking for any of the power management function symbols
being present in System.map for a build without CONFIG_PM.
If a driver has runtime PM, define the ops with pm_ptr(), and if the
driver has Simple PM, use pm_sleep_ptr(), as well as the new versions of
the macros for declaring the members of the pm_ops structs.
Checked with network-enabled allnoconfig, allyesconfig, allmodconfig on
x64_64.
Reviewed-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
(cherry picked from commit 75a3f93)
Conflicts: Partial backport
JIRA: https://issues.redhat.com/browse/RHEL-17488
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>1 parent 5eacfb7 commit 6b69f8a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2470 | 2470 | | |
2471 | 2471 | | |
2472 | 2472 | | |
2473 | | - | |
| 2473 | + | |
2474 | 2474 | | |
2475 | 2475 | | |
2476 | 2476 | | |
| |||
2957 | 2957 | | |
2958 | 2958 | | |
2959 | 2959 | | |
2960 | | - | |
| 2960 | + | |
2961 | 2961 | | |
2962 | 2962 | | |
2963 | 2963 | | |
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | 2967 | | |
2968 | | - | |
| 2968 | + | |
2969 | 2969 | | |
2970 | 2970 | | |
2971 | 2971 | | |
| |||
0 commit comments