ksz884x: mark pcidev_suspend() as __maybe_unused

In certain configurations without power management support, gcc report
the following warning:

drivers/net/ethernet/micrel/ksz884x.c:7182:12: warning:
 'pcidev_suspend' defined but not used [-Wunused-function]
 7182 | static int pcidev_suspend(struct device *dev_d)
      |            ^~~~~~~~~~~~~~

Mark pcidev_suspend() as __maybe_unused to make it clear.

Fixes: 64120615d1 ("ksz884x: 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>
This commit is contained in:
Wei Yongjun 2020-07-02 17:18:10 +08:00 committed by David S. Miller
parent 44947c0b66
commit ffa76e38b7
1 changed files with 1 additions and 1 deletions

View File

@ -7179,7 +7179,7 @@ static int __maybe_unused pcidev_resume(struct device *dev_d)
return 0;
}
static int pcidev_suspend(struct device *dev_d)
static int __maybe_unused pcidev_suspend(struct device *dev_d)
{
int i;
struct platform_info *info = dev_get_drvdata(dev_d);