From: YueHaibing Date: Wed, 26 Jun 2019 02:09:02 +0000 (+0800) Subject: nvme-pci: make nvme_dev_pm_ops static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=21774222324e018f064d4fbb661e3c09c2bcaad0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: YueHaibing Reviewed-by: Minwoo Im Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig --- 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,