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:	Mon, 11 Jan 2016 12:50:18 +0000
From:	"Shevchenko, Andriy" <andriy.shevchenko@...el.com>
To:	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	"anton.wuerfel@....de" <anton.wuerfel@....de>
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"mail@...iej.szmigiero.name" <mail@...iej.szmigiero.name>,
	"desmondl@...adcom.com" <desmondl@...adcom.com>,
	"Zha, Qipeng" <qipeng.zha@...el.com>,
	"heikki.krogerus@...ux.intel.com" <heikki.krogerus@...ux.intel.com>,
	"long.wanglong@...wei.com" <long.wanglong@...wei.com>,
	"soeren.grunewald@...y.de" <soeren.grunewald@...y.de>,
	"deller@....de" <deller@....de>,
	"jslaby@...e.com" <jslaby@...e.com>,
	"phillip.raffeck@....de" <phillip.raffeck@....de>,
	"paul.burton@...tec.com" <paul.burton@...tec.com>,
	"hpeter@...il.com" <hpeter@...il.com>,
	"ralf@...ux-mips.org" <ralf@...ux-mips.org>,
	"linux-kernel@...cs.fau.de" <linux-kernel@...cs.fau.de>,
	"mans@...sr.com" <mans@...sr.com>,
	"adam.lee@...onical.com" <adam.lee@...onical.com>,
	"jejb@...isc-linux.org" <jejb@...isc-linux.org>,
	"linux-parisc@...r.kernel.org" <linux-parisc@...r.kernel.org>,
	"peter@...leysoftware.com" <peter@...leysoftware.com>,
	"matt.redfearn@...tec.com" <matt.redfearn@...tec.com>,
	"k.kozlowski@...sung.com" <k.kozlowski@...sung.com>
Subject: Re: [PATCH v4 01/13] tty: serial: 8250: Fix whitespace errors

On Mon, 2016-01-11 at 14:28 +0200, Andy Shevchenko wrote:
> On Fri, 2016-01-08 at 18:43 +0100, Anton Wuerfel wrote:
> > This patch fixes whitespace errors reported by checkpatch to
> > increase
> > readability. Main focus is on missing spaces after commas in
> > function headers and macros (like foo,bar edited to foo, bar).
> > 
> > Signed-off-by: Anton Würfel <anton.wuerfel@....de>
> > Signed-off-by: Phillip Raffeck <phillip.raffeck@....de>
> > CC: linux-kernel@...cs.fau.de
> 
> Cc: looks more standard.
> 
> > --- a/drivers/tty/serial/8250/8250_accent.c
> > +++ b/drivers/tty/serial/8250/8250_accent.c
> > @@ -10,7 +10,7 @@
> >  #include <linux/init.h>
> >  #include <linux/serial_8250.h>
> >  
> > -#define PORT(_base,_irq)				\
> > +#define PORT(_base, _irq)				\
> >  	{						\
> >  		.iobase		= _base,		\
> >  		.irq		= _irq,			
> > \

8250_PORT()

> > 
> 
> While those are okay, I would suggest to make a macro in
> drivers/…/8250.h one for all, something like this:
> 
> #define 8250_PORT_FLAGS(_base, _irq, _flags)
> …
> 	.flags          = UPF_BOOT_AUTOCONF | (_flags) \
> 
> #define 8250_PORT(_base, _irq)	8250_PORT_FLAGS(_base, _irq, 0)
> 
> And use it.

#define 8250_FOURPORT(_base, _irq)	8250_PORT_FLAGS(_base, _irq,
UPF_FOURPORT)

> > --- a/drivers/tty/serial/8250/8250_fourport.c
> > +++ b/drivers/tty/serial/8250/8250_fourport.c
> > @@ -10,7 +10,7 @@
> >  #include <linux/init.h>
> >  #include <linux/serial_8250.h>
> >  
> > -#define PORT(_base,_irq)						
> > \
> > +#define PORT(_base, _irq)						
> > \
> >  	{								
> > \
> >  		.iobase		= _base,			
> > 	\
> >  		.irq		= _irq,			
> > 	
> > 	\

8250_FOURPORT()

-- 
Andy Shevchenko <andriy.shevchenko@...el.com>
Intel Finland Oy
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ