diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-07 13:55:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-07 22:59:37 +0300 |
commit | 847d97e013dc8359312e2376c4805ef9d2a52f64 (patch) | |
tree | fb216de92e11b2aa023759d9840a670ffe885669 /drivers/net/ethernet/sun | |
parent | 86fc3f7074d029ce23271d492a1c8ffee3067244 (diff) | |
download | linux-847d97e013dc8359312e2376c4805ef9d2a52f64.tar.xz |
sun/cassini: mark cas_resume() as __maybe_unused
In certain configurations without power management support, gcc report
the following warning:
drivers/net/ethernet/sun/cassini.c:5206:12: warning:
'cas_resume' defined but not used [-Wunused-function]
5206 | static int cas_resume(struct device *dev_d)
| ^~~~~~~~~~
Mark cas_resume() as __maybe_unused to make it clear.
Fixes: f193f4ebde3d ("sun/cassini: use generic power management")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun')
-rw-r--r-- | drivers/net/ethernet/sun/cassini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index 5b11124450d6..3bab2cb700c7 100644 --- a/drivers/net/ethernet/sun/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c @@ -5203,7 +5203,7 @@ static int __maybe_unused cas_suspend(struct device *dev_d) return 0; } -static int cas_resume(struct device *dev_d) +static int __maybe_unused cas_resume(struct device *dev_d) { struct net_device *dev = dev_get_drvdata(dev_d); struct cas *cp = netdev_priv(dev); |