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] [day] [month] [year] [list]
Date:   Wed, 12 Apr 2017 14:38:17 +0200
From:   Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:     "Tobin C. Harding" <me@...in.cc>
Cc:     devel@...verdev.osuosl.org, Wolfram Sang <wsa@...-dreams.de>,
        sayli karnik <karniksayli1995@...il.com>,
        kernel-janitors@...r.kernel.org,
        LKML <linux-kernel@...r.kernel.org>,
        Joe Perches <joe@...ches.com>,
        SF Markus Elfring <elfring@...rs.sourceforge.net>
Subject: Re: [PATCH] staging: ks7010: Adjust dev_err() calls in
 ks7010_sdio_probe()

On Wed, Apr 12, 2017 at 09:57:35PM +1000, Tobin C. Harding wrote:
> On Wed, Apr 12, 2017 at 12:27:10PM +0200, Greg Kroah-Hartman wrote:
> > On Wed, Apr 12, 2017 at 08:39:15AM +1000, Tobin C. Harding wrote:
> > > On Tue, Apr 11, 2017 at 03:15:32PM +0200, SF Markus Elfring wrote:
> > > > From: Markus Elfring <elfring@...rs.sourceforge.net>
> > > > Date: Tue, 11 Apr 2017 14:54:35 +0200
> > > > 
> > > > The use of the logging function "dev_err" was introduced here on 2016-09-26.
> > > > 
> > > > I find the following implementation details worth for another look.
> > > > * Reduce expressions for the first input parameter "dev".
> > > > 
> > > > * Omit an extra module prefix in passed error messages because the device name
> > > >   will be displayed by the function "__dev_printk".
> > > > 
> > > > Fixes: 9887b5e51fafaf919601ccb8bdae1e0ad749032f ("staging: ks7010: Fix warnings on printk() usage")
> > > > 
> > > > Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
> > > > ---
> > > >  drivers/staging/ks7010/ks7010_sdio.c | 11 +++++------
> > > >  1 file changed, 5 insertions(+), 6 deletions(-)
> > > > 
> > > > diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
> > > > index b16618b41253..85feb170869b 100644
> > > > --- a/drivers/staging/ks7010/ks7010_sdio.c
> > > > +++ b/drivers/staging/ks7010/ks7010_sdio.c
> > > > @@ -955,12 +955,11 @@ static int ks7010_sdio_probe(struct sdio_func *func,
> > > >  	/* private memory allocate */
> > > >  	netdev = alloc_etherdev(sizeof(*priv));
> > > >  	if (!netdev) {
> > > > -		dev_err(&card->func->dev, "ks7010 : Unable to alloc new net device\n");
> > > > +		dev_err(&func->dev, "Unable to alloc new net device\n");
> > > >  		goto err_release_irq;
> > > >  	}
> > > >  	if (dev_alloc_name(netdev, "wlan%d") < 0) {
> > > > -		dev_err(&card->func->dev,
> > > > -			"ks7010 :  Couldn't get name!\n");
> > > > +		dev_err(&func->dev, "Couldn't get name!\n");
> > > >  		goto err_free_netdev;
> > > >  	}
> > > >  
> > > > @@ -1000,9 +999,9 @@ static int ks7010_sdio_probe(struct sdio_func *func,
> > > >  	/* Upload firmware */
> > > >  	ret = ks7010_upload_firmware(priv, card);	/* firmware load */
> > > >  	if (ret) {
> > > > -		dev_err(&card->func->dev,
> > > > -			"ks7010: firmware load failed !! return code = %d\n",
> > > > -			 ret);
> > > > +		dev_err(&func->dev,
> > > > +			"firmware load failed! return code = %d\n",
> > > > +			ret);
> > > >  		goto err_free_read_buf;
> > > >  	}
> > > 
> > > This patch does not apply to Greg's staging-testing branch. Sorry
> > > Markus a patch was merged the same day you submitted this one that
> > > refactored this code.
> > 
> > Note, Markus is in almost all maintainers kill-file, so we don't even
> > see their emails, and I'd recommend you not even worry about them
> > either.
> 
> I've never heard of a kill-file, it sounds awesome. I hope to some day
> have one of those myself. I settled for a incoming mail rule deleting his
> email.

Ah, you now have implemented your own, nice work!

	https://en.wikipedia.org/wiki/Kill_file

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ