lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 27 Jun 2019 00:02:48 +0000
From:   Chaitanya Kulkarni <Chaitanya.Kulkarni@....com>
To:     Minwoo Im <minwoo.im.dev@...il.com>,
        YueHaibing <yuehaibing@...wei.com>
CC:     "keith.busch@...el.com" <keith.busch@...el.com>,
        "sagi@...mberg.me" <sagi@...mberg.me>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
        "axboe@...com" <axboe@...com>,
        "kbusch@...nel.org" <kbusch@...nel.org>, "hch@....de" <hch@....de>
Subject: Re: [PATCH -next] nvme-pci: Make nvme_dev_pm_ops static

Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@....com>

On 6/26/19, 1:23 PM, "Linux-nvme on behalf of Minwoo Im" <linux-nvme-bounces@...ts.infradead.org on behalf of minwoo.im.dev@...il.com> wrote:

    On 19-06-26 10:09:02, YueHaibing wrote:
    > 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@...wei.com>
    > Signed-off-by: YueHaibing <yuehaibing@...wei.com>
    > ---
    >  drivers/nvme/host/pci.c | 2 +-
    >  1 file changed, 1 insertion(+), 1 deletion(-)
    > 
    > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
    > index 1893520..f500133 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,
    
    IMHO, it should be in static.
    
    Reviewed-by: Minwoo Im <minwoo.im.dev@...il.com>
    
    _______________________________________________
    Linux-nvme mailing list
    Linux-nvme@...ts.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-nvme
    

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ