summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/pci.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-06-26 04:09:02 +0200
committerChristoph Hellwig <hch@lst.de>2019-07-09 22:16:10 +0200
commit21774222324e018f064d4fbb661e3c09c2bcaad0 (patch)
treef62caa90525241b0c0090063e55c85debaa11694 /drivers/nvme/host/pci.c
parentnvme-fcloop: resolve warnings on RCU usage and sleep warnings (diff)
downloadlinux-21774222324e018f064d4fbb661e3c09c2bcaad0.tar.xz
linux-21774222324e018f064d4fbb661e3c09c2bcaad0.zip
nvme-pci: make nvme_dev_pm_ops static
Fix sparse warning: drivers/nvme/host/pci.c:2926:25: warning: symbol 'nvme_dev_pm_ops' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/pci.c')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 189352081994..f50013369cc5 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2923,7 +2923,7 @@ static int nvme_simple_resume(struct device *dev)
return 0;
}
-const struct dev_pm_ops nvme_dev_pm_ops = {
+static const struct dev_pm_ops nvme_dev_pm_ops = {
.suspend = nvme_suspend,
.resume = nvme_resume,
.freeze = nvme_simple_suspend,