diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2020-07-01 00:00:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-01 04:17:54 +0300 |
commit | 75603a3112664cb1f6b1508e2b489f16863bf153 (patch) | |
tree | 66767adfa7af35a3adcb6b315882ed5f5af81903 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.h | |
parent | 0adcd2981ddddba4c1330078ea12e89fd782e79f (diff) | |
download | linux-75603a3112664cb1f6b1508e2b489f16863bf153.tar.xz |
pcnet32: Mark PM functions as __maybe_unused
In certain configurations without power management support, the
following warnings happen:
../drivers/net/ethernet/amd/pcnet32.c:2928:12: warning:
'pcnet32_pm_resume' defined but not used [-Wunused-function]
2928 | static int pcnet32_pm_resume(struct device *device_d)
| ^~~~~~~~~~~~~~~~~
../drivers/net/ethernet/amd/pcnet32.c:2916:12: warning:
'pcnet32_pm_suspend' defined but not used [-Wunused-function]
2916 | static int pcnet32_pm_suspend(struct device *device_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: a86688fbef1b ("pcnet32: 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/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.h')
0 files changed, 0 insertions, 0 deletions