On Thu, 26 Mar 2009 17:31:35 -0400
Dave Strauss <[email protected]> wrote:

> Guennadi Liakhovetski wrote:
> > On Thu, 26 Mar 2009, Mauro Carvalho Chehab wrote:
> > 
> >>>>> +       /* common v4l buffer stuff -- must be first */
> >>>>> +       struct videobuf_buffer vb;
> >>>>>     
> >>>> Here you have one space
> >>>>
> >>>>   
> >>>>> +
> >>>>> +       const struct soc_camera_data_format        *fmt;
> >>>>>     
> >>>> Here you have 8 spaces
> >>>>
> >>>>   
> >>>>> +
> >>>>> +       int                     inwork;
> >>>>>     
> >>>> Here you have tabs. Please, unify.
> >> Please always check your patches with checkpatch.pl. This will point such 
> >> issues.
> > 
> > No, I did check the patch with checkpatch.pl and it didn't complain about 
> > this. It checks _indentation_ of lines, that _must_ be done with TABs, but 
> > it doesn't check what is used for alignment _inside_ lines, like
> > 
> >     xxx     = 0;
> >     y       = 1;
> >     zzzzz   = 2;
> > 
> > where first and third lines have spaces before "=", and the second one has 
> > a TAB. This is not checked by checkpatch.pl.
> > 
> > Thanks
> > Guennadi
> > ---
> > Guennadi Liakhovetski
> > 
> 
> Newbie question -- where does one find checkpatch.pl?  And are there any other
> tools we should be running on patches before we submit them?


It is at kernel tree, under script directory. You shouldn't copy it from kernel
tree, but to use it from there, to get optimum results, since it will read some
files a kernel documentation, for checking the usage of legacy functions.
> 
> Thanks.
> 
>   - Dave Strauss




Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to