public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Need clearance before sending patch
@ 2013-07-26 15:51 Julia Lawall
  2013-07-26 15:55 ` Kumar Gaurav
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julia Lawall @ 2013-07-26 15:51 UTC (permalink / raw)
  To: kernel-janitors

On Fri, 26 Jul 2013, Kumar Gaurav wrote:

> Hi Dan,
>
> I had sent my first patch with lots of changes which wasn't correct.
> Now i'm splitting them in parts as below:
> 1.One patch for variable name replacement (one patch per file)
> 2.One Patch for fixing coding style issue (one patch per file)
> 3.One Patch for fixing warning about using pr_warn,pr_error functions instead 
> of printk(KERN_WARNING... and printk(KERN_ERR... (havn't replaced yet as last 
> time you weren't convinced)
>
> please tell me that should i apply these patches per file or one patch for 
> replacement in all applied files?

I wonder if one would be better off by starting with small isolated bugs, 
rather than these things that, even though they seem simple, are a bit 
pervasive and rely a lot on taste?

Finding real bugs is not so hard.  One can either use the various tools 
that are provided, or study the git logs to see what kind of bugs others 
have found.

julia

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

* Need clearance before sending patch
  2013-07-26 15:51 Need clearance before sending patch Julia Lawall
@ 2013-07-26 15:55 ` Kumar Gaurav
  2013-07-26 16:23 ` Kumar Gaurav
  2013-07-26 20:53 ` Dan Carpenter
  2 siblings, 0 replies; 4+ messages in thread
From: Kumar Gaurav @ 2013-07-26 15:55 UTC (permalink / raw)
  To: kernel-janitors

Hi Dan,

I had sent my first patch with lots of changes which wasn't correct.
Now i'm splitting them in parts as below:
1.One patch for variable name replacement (one patch per file)
2.One Patch for fixing coding style issue (one patch per file)
3.One Patch for fixing warning about using pr_warn,pr_error functions 
instead of printk(KERN_WARNING... and printk(KERN_ERR... (havn't 
replaced yet as last time you weren't convinced)

please tell me that should i apply these patches per file or one patch 
for replacement in all applied files?

Thanks

Kumar gaurav

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

* Re: Need clearance before sending patch
  2013-07-26 15:51 Need clearance before sending patch Julia Lawall
  2013-07-26 15:55 ` Kumar Gaurav
@ 2013-07-26 16:23 ` Kumar Gaurav
  2013-07-26 20:53 ` Dan Carpenter
  2 siblings, 0 replies; 4+ messages in thread
From: Kumar Gaurav @ 2013-07-26 16:23 UTC (permalink / raw)
  To: kernel-janitors

On Friday 26 July 2013 09:21 PM, Julia Lawall wrote:
> On Fri, 26 Jul 2013, Kumar Gaurav wrote:
>
>> Hi Dan,
>>
>> I had sent my first patch with lots of changes which wasn't correct.
>> Now i'm splitting them in parts as below:
>> 1.One patch for variable name replacement (one patch per file)
>> 2.One Patch for fixing coding style issue (one patch per file)
>> 3.One Patch for fixing warning about using pr_warn,pr_error functions
>> instead of printk(KERN_WARNING... and printk(KERN_ERR... (havn't
>> replaced yet as last time you weren't convinced)
>>
>> please tell me that should i apply these patches per file or one patch
>> for replacement in all applied files?
>
> I wonder if one would be better off by starting with small isolated
> bugs, rather than these things that, even though they seem simple, are a
> bit pervasive and rely a lot on taste?
>
> Finding real bugs is not so hard.  One can either use the various tools
> that are provided, or study the git logs to see what kind of bugs others
> have found.
>
> julia
Thanks for your reply Julia. I'll start looking for real bug right ahead 
but want to fix with what i started so just waiting for answer or above 
questions.
In mean while i'm looking at bugs and will try to fix them if i find any.

Thanks

Kumar gaurav

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

* Re: Need clearance before sending patch
  2013-07-26 15:51 Need clearance before sending patch Julia Lawall
  2013-07-26 15:55 ` Kumar Gaurav
  2013-07-26 16:23 ` Kumar Gaurav
@ 2013-07-26 20:53 ` Dan Carpenter
  2 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2013-07-26 20:53 UTC (permalink / raw)
  To: kernel-janitors

On Fri, Jul 26, 2013 at 05:51:27PM +0200, Julia Lawall wrote:
> On Fri, 26 Jul 2013, Kumar Gaurav wrote:
> 
> >Hi Dan,
> >
> >I had sent my first patch with lots of changes which wasn't correct.
> >Now i'm splitting them in parts as below:
> >1.One patch for variable name replacement (one patch per file)
> >2.One Patch for fixing coding style issue (one patch per file)
> >3.One Patch for fixing warning about using pr_warn,pr_error
> >functions instead of printk(KERN_WARNING... and printk(KERN_ERR...
> >(havn't replaced yet as last time you weren't convinced)

The pr_warn() thing works differently from how you were doing it.

wrong  : pr_warn(KERN_WARN "msg\n");
correct: pr_warn("msg\n");

But I think Julia has a good suggestion.

regards,
dan carpenter


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

end of thread, other threads:[~2013-07-26 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 15:51 Need clearance before sending patch Julia Lawall
2013-07-26 15:55 ` Kumar Gaurav
2013-07-26 16:23 ` Kumar Gaurav
2013-07-26 20:53 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox