diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-11-12 14:59:41 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-12 10:55:41 -0800 |
commit | 0ee0bbb018938addf87b54d447cc5633d2e53490 (patch) | |
tree | be5d01ad3103530bd3f108b159e27ad60a0fa59d /drivers/net/ethernet/aquantia | |
parent | b55cbbee74b77dc17165f6c80dfa31e12c5cb1ff (diff) | |
download | linux-0ee0bbb018938addf87b54d447cc5633d2e53490.tar.bz2 |
net: atlantic: make symbol 'aq_pm_ops' static
Fix sparse warnings:
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:426:25: warning: symbol 'aq_pm_ops' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 8aaa112a57c1 ("net: atlantic: refactoring pm logic")
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index a161026cfbfd..2bb329606794 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -423,7 +423,7 @@ static int aq_pm_resume_restore(struct device *dev) return atl_resume_common(dev, true); } -const struct dev_pm_ops aq_pm_ops = { +static const struct dev_pm_ops aq_pm_ops = { .suspend = aq_pm_suspend_poweroff, .poweroff = aq_pm_suspend_poweroff, .freeze = aq_pm_freeze, |