nvme-pci: make nvme_dev_pm_ops static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 Jun 2019 02:09:02 +0000 (10:09 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 20:16:10 +0000 (13:16 -0700)
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>
drivers/nvme/host/pci.c

index 189352081994126330d9f659c919f44fed8964e1..f50013369cc5d4a1d7530f91962306a9dbe00fce 100644 (file)
@@ -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,