linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: + scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes.patch added to -mm tree
       [not found] <200803060016.m260Giml029428@imap1.linux-foundation.org>
@ 2008-03-06  0:27 ` James Bottomley
  2008-03-06  0:47   ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: James Bottomley @ 2008-03-06  0:27 UTC (permalink / raw)
  To: akpm; +Cc: linux-scsi, harvey.harrison


On Wed, 2008-03-05 at 16:16 -0800, akpm@linux-foundation.org wrote:
> The patch titled
>      scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes
> has been added to the -mm tree.  Its filename is
>      scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes.patch
> 
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
> 
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
> 
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
> 
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
> 
> ------------------------------------------------------
> Subject: scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes
> From: Andrew Morton <akpm@linux-foundation.org>
> 
> ERROR: need space after that ',' (ctx:VxV)
> #66: FILE: drivers/scsi/ch.c:742:
> +		memset(ch_cmd,0,sizeof(ch_cmd));
>  		             ^
> 
> ERROR: need space after that ',' (ctx:VxV)
> #66: FILE: drivers/scsi/ch.c:742:
> +		memset(ch_cmd,0,sizeof(ch_cmd));
>  		               ^
> 
> ERROR: need space after that ',' (ctx:VxV)
> #70: FILE: drivers/scsi/ch.c:746:
> +			    ch_elem_to_typecode(ch,elem);
>  			                          ^
> 
> total: 3 errors, 0 warnings, 55 lines checked
> 
> ./patches/scsi-chc-fix-shadowed-variable-warnings.patch has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
> 
> Please run checkpatch prior to sending patches
> 
> Cc: Harvey Harrison <harvey.harrison@gmail.com>
> Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/scsi/ch.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff -puN drivers/scsi/ch.c~scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes drivers/scsi/ch.c
> --- a/drivers/scsi/ch.c~scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes
> +++ a/drivers/scsi/ch.c
> @@ -739,11 +739,11 @@ static long ch_ioctl(struct file *file,
>  		mutex_lock(&ch->lock);
>  
>  	voltag_retry:
> -		memset(ch_cmd,0,sizeof(ch_cmd));
> +		memset(ch_cmd, 0, sizeof(ch_cmd));
>  		ch_cmd[0] = READ_ELEMENT_STATUS;
>  		ch_cmd[1] = (ch->device->lun << 5) |
>  			    (ch->voltags ? 0x10 : 0) |
> -			    ch_elem_to_typecode(ch,elem);
> +			    ch_elem_to_typecode(ch, elem);
>  		ch_cmd[2] = (elem >> 8) & 0xff;
>  		ch_cmd[3] = elem        & 0xff;
>  		ch_cmd[5] = 1;

Please stop.  I'm not taking whitespace patches ... one per file no
less.  I take whitespace and other cleanups as part of real driver
updates only.

James



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: + scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes.patch added to -mm tree
  2008-03-06  0:27 ` + scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes.patch added to -mm tree James Bottomley
@ 2008-03-06  0:47   ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2008-03-06  0:47 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, harvey.harrison

On Wed, 05 Mar 2008 18:27:27 -0600
James Bottomley <James.Bottomley@HansenPartnership.com> wrote:

> > 
> > diff -puN drivers/scsi/ch.c~scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes drivers/scsi/ch.c
> > --- a/drivers/scsi/ch.c~scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes
> > +++ a/drivers/scsi/ch.c
> > @@ -739,11 +739,11 @@ static long ch_ioctl(struct file *file,
> >  		mutex_lock(&ch->lock);
> >  
> >  	voltag_retry:
> > -		memset(ch_cmd,0,sizeof(ch_cmd));
> > +		memset(ch_cmd, 0, sizeof(ch_cmd));
> >  		ch_cmd[0] = READ_ELEMENT_STATUS;
> >  		ch_cmd[1] = (ch->device->lun << 5) |
> >  			    (ch->voltags ? 0x10 : 0) |
> > -			    ch_elem_to_typecode(ch,elem);
> > +			    ch_elem_to_typecode(ch, elem);
> >  		ch_cmd[2] = (elem >> 8) & 0xff;
> >  		ch_cmd[3] = elem        & 0xff;
> >  		ch_cmd[5] = 1;
> 
> Please stop.  I'm not taking whitespace patches ... one per file no
> less.

This gets folded into the base patch - there is no incremental effect.

>  I take whitespace and other cleanups as part of real driver
> updates only.

That's what this does.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-06  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200803060016.m260Giml029428@imap1.linux-foundation.org>
2008-03-06  0:27 ` + scsi-chc-fix-shadowed-variable-warnings-checkpatch-fixes.patch added to -mm tree James Bottomley
2008-03-06  0:47   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).