diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2020-06-30 14:00:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 18:17:53 -0700 |
commit | 0adcd2981ddddba4c1330078ea12e89fd782e79f (patch) | |
tree | 2b51e3ee139d4ba32a70bf0433761da12de8f52e /drivers/xen/mcelog.c | |
parent | 2429ec265d50b4b6270763c4f37db61390adf350 (diff) |
amd8111e: Mark PM functions as __maybe_unused
In certain configurations without power management support, the
following warnings happen:
../drivers/net/ethernet/amd/amd8111e.c:1623:12: warning:
'amd8111e_resume' defined but not used [-Wunused-function]
1623 | static int amd8111e_resume(struct device *dev_d)
| ^~~~~~~~~~~~~~~
../drivers/net/ethernet/amd/amd8111e.c:1584:12: warning:
'amd8111e_suspend' defined but not used [-Wunused-function]
1584 | static int amd8111e_suspend(struct device *dev_d)
| ^~~~~~~~~~~~~~~~
Mark these functions as __maybe_unused to make it clear to the compiler
that this is going to happen based on the configuration, which is the
standard for these types of functions.
Fixes: 2caf751fe080 ("amd8111e: Convert to generic power management")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/xen/mcelog.c')
0 files changed, 0 insertions, 0 deletions